{{tag>Function Function_List Date_And_Time}} ====== END_OF_WEEK ====== ===== Description ===== Returns a date being Sunday of the week that the parameter date represents ===== Syntax ===== ''END_OF_WEEK (date)'' Cannot 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 Date ===== Returns ===== **Date**: the Sunday of the week containing the given date. ===== Example ===== Account.EndOfWeek = END_OF_WEEK(CURRENT_DATE) ===== Related ===== [[ref:a_f:f:af:start_of_week|START_OF_WEEK]], [[ref:a_f:f:af:next_day_of_week|NEXT_DAY_OF_WEEK]], [[ref:a_f:f:af:prev_day_of_week|PREV_DAY_OF_WEEK]], [[ref:a_f:f:af:day_of_week|DAY_OF_WEEK]]