Skip to main content

getWeekOfMonth

Admin Docs


Function: getWeekOfMonth()

getWeekOfMonth(date): number

Defined in: src/utils/recurrenceUtils/recurrenceUtilityFunctions.ts:323

Calculates which week of the month a given date falls in (calendar row), using UTC.

Parameters

date

Date

The date to calculate the week for

Returns

number

The week number (1-6) within the month