To return the year number in a given date.
Syntax
Year(date-expression | datetime-expression)
Type returned:
Numeric N(4)
If the received parameter is null, zero is returned.
Example
To obtain the current year and assign it to a variable:
&ThisYear = Year(Today())
And next year:
&NextYear = Year(Now()) + 1
Scope
Objects Procedure object, Transaction object, Web Panel object
See also
TimeZone Support - General Considerations
Year method
Month function
Day function
|