YEAR()

The YEAR() operator extracts the year of a date time expression.

Syntax

YEAR ( expr )
  1. expr is a date / time expression.

Usage

Returns an integer corresponding to the year portion of its operand.

MAIN
  DISPLAY YEAR ( TODAY )
  DISPLAY YEAR ( CURRENT )
END MAIN