{{tag>Function Function_List Date_And_Time}} ====== YEAR ====== ===== Description ===== Returns the year of the provided date as an integer constant ===== Syntax ===== ''YEAR (date)'' Can be used in the condition of a [[:ref:a_f:a:find|FIND]] action. ===== Parameters ===== Attribute of the Date type or date constant or calculation producing a date ===== Returns ===== **Number**: the year of the date. ===== Example ===== IF YEAR (Account.OpeningDate) = 2004 THEN ... ===== Related ===== [[ref:a_f:f:af:month|MONTH]], [[ref:a_f:f:af:day_of_month|DAY_OF_MONTH]], [[ref:a_f:f:af:current_year|CURRENT_YEAR]], [[ref:a_f:f:af:year_difference|YEAR_DIFFERENCE]]