startOfWeekFixed
Calendar
stable
Return a new Date at midnight of the first day of the week containing the given date, using an explicit firstDayOfWeek integer. Unlike startOfWeek, locale is never consulted.
API
Signature
Full TypeScript signature sourced from the util file.
API
Parameters
Input parameters accepted by this util.
- daterequiredDate
- The reference date. Time fields are cleared to 00:00:00.000 on the result.
- firstDayOfWeekrequirednumber
- Day-of-week index for the first day (0 = Sunday, 1 = Monday … 6 = Saturday). Passed directly as a calendar prop.
API
Return value
The value returned by this util.
- A new Date at 00:00:00.000 of the first day of the week.
Usage
Examples
Ready-to-paste usage snippets.
Week start on Monday (1)