YEAR

Returns the year of the provided date as an integer constant

Attribute of the Date type or date constant or calculation producing a date

IF YEAR (Account.OpeningDate = 2004) THEN ...