{{tag>Function Function_List Date_And_Time}} ====== WEEK_DIFFERENCE ====== ===== Description ===== Calculates the week difference between the two dates as an integer constant ===== Syntax ===== ''WEEK_DIFFERENCE (date1, date2)'' Can be used in the condition of a [[:ref:a_f:a:find|FIND]] action. ===== Parameters ===== Two attributes of the Date type or date constants or calculations producing date ===== Returns ===== **Number**: the difference between the two dates in weeks. ===== Example ===== IF WEEK_DIFFERENCE (Account.OpeningDate, Account.ClosingDate) = 2 THEN ... ===== Related ===== [[ref:a_f:f:af:day_difference|DAY_DIFFERENCE]], [[ref:a_f:f:af:month_difference|MONTH_DIFFERENCE]], [[ref:a_f:f:af:year_difference|YEAR_DIFFERENCE]], [[ref:a_f:f:af:week|WEEK]]