Month DataWindow expression function
Description
Gets the month of a date value.
Syntax
1 |
<span>Month</span> ( <span>date</span> ) |
Argument |
Description |
---|---|
date |
The date from which you want the month |
Return Values
Integer. Returns an integer (1 to 12) whose value is the month
portion of date.
Examples
This expression returns 1:
1 |
<span>Month</span>(2005-01-31) |
This expression for a computed column returns Wrong
Month if the month in the column expected_grad_date
is not 6:
1 |
If(<span>Month</span>(expected_grad_date) <span>=</span> 6, "June", "Wrong <br>Month") |
This validation rule expression checks that the value
of the month in the date in the column expected_grad_date
is 6:
1 |
<span>Month</span>(expected_grad_date) <span>=</span> 6 |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest