monthOf
monthOf ( aDate : date ) : integer
Parameter | Type | Description | |
---|---|---|---|
aDate | date | -> | Date for which to return the month |
Result | integer | <- | Number indicating the month of aDate |
Description
The monthOf
command returns the month number of aDate.
monthOf
returns the number of the month, not the name (see example).
To compare the value returned by this function, Qodly provides the following predefined constants:
Constant | Type | Value |
---|---|---|
January | integer | 1 |
February | integer | 2 |
March | integer | 3 |
April | integer | 4 |
May | integer | 5 |
June | integer | 6 |
July | integer | 7 |
August | integer | 8 |
September | integer | 9 |
October | integer | 10 |
November | integer | 11 |
December | integer | 12 |
Example
var vResult : integer
vResult = monthOf(!12/25/92!) // vResult gets 12
vResult = monthOf(currentDate) // vResult gets month of current date