Year function

Official Content
This documentation is valid for:

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





Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.