Month function
Syntax
Month(datevalue)
Description
Use the Month function to return the month of the year as an integer from 1 to 12 for the specified datevalue. The Month function accepts a date or DateTime value as a parameter.
Parameters
| Parameter | Description |
|---|---|
|
datevalue |
A date or DateTime value on the basis of which to determine the month. |
Returns
Returns a Number value from 1 to 12 specifying the month of the year.
Example
This example sets &HIRE_MONTH to 3:
&HIREDATE = DateTime6(1997, 3, 15, 10, 9, 20);
&HIRE_MONTH = Month(&HIRE_DATE);