Date.WeekOfMonth
Returns a number from 1 to 6 indicating which week of the month this date falls in.
Syntax
Date.WeekOfMonth(
dateTime as any,
optional firstDayOfWeek as Day.Type
) as number
Remarks
Returns a number from 1 to 6 indicating which week of the month the date dateTime
falls in.
dateTime
: Adatetime
value for which the week-of-the-month is determined.
Examples
Example #1
Determine which week of March the 15th falls on in 2011.
Date.WeekOfMonth(#date(2011, 03, 15))
Result:
3
Category
Date