{{tag>Function Function_List Date_And_Time}} ====== WEEK ====== ===== Description ===== Returns the week of the provided date as an integer constant in the range 1-52 ===== Syntax ===== ''WEEK (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 week of the year for the date, 1-52. ===== Example ===== IF WEEK (Account.OpeningDate) = 50 THEN ... ===== Related ===== [[ref:a_f:f:af:week_difference|WEEK_DIFFERENCE]], [[ref:a_f:f:af:current_week|CURRENT_WEEK]], [[ref:a_f:f:af:year|YEAR]], [[ref:a_f:f:af:month|MONTH]]