Year function

Official Content
This documentation is valid for:

To return the year number in a given date.


Year(date-expression | datetime-expression)

Type returned:
Numeric N(4)

If the received parameter is null, zero is returned.


To obtain the current year and assign it to a variable:

&ThisYear = Year(Today())

And next year:

&NextYear = Year(Now()) + 1


Objects   Procedure object, Transaction object, Web Panel object

See also

TimeZone Support - General Considerations
Year method
Month function
Day function