Date
The Date generator type supports the following constructors:
-
(Date date)
-
(Date date, Boolean skip.current.year)
-
(Number year)
-
(Number year, Number month)
-
(Number year, Number month, Boolean skip.current.year)
-
(Number year, Number month, Number day)
-
(Number year, Number month, Number day, Boolean skip.current.year)
The five parameters are:
-
Date—Any Date object from which to extract the date to be played back.
-
Skip.current.year—If set to true, the year does not play back if it is the same as the current year.
-
Year—The year of the date to be played back. This year must be specified in full (for example, 2005).
Note | Any number given is played, so it is the responsibility of the caller to ensure that the specified year is valid. |
-
Month—The month of the date to be played back. Valid values range from 1 to 12, where 1 represents January and 12 represents December.
-
Day—The day of the date to be played back. Valid values range from 1 to 31 and are validated at run time based on the specified month and year.