Date Function Returns a Numeric Value
Returns the year value for the date using either the "yyyy" or "yy" format. When not using the optional 2-digit year switch, the string will be formatted as "yyyy". When using the optional 2-digit year switch, the string will be formatted as "yy" when the switch is 1 or as "yyyy" when the switch is 0. If the date_value is blank, the current system date is used. Returns 0 if the date_value is equal to "mm/dd/yyyy".

Examples:

YEAR(DATENUM( ), 1)

Returns 26 if the current system date is August 4, 2026.

Other Resources