Skip to main content

Function: dayOfWeekSunday0()

dayOfWeekSunday0(d): number

Defined in: src/lib/dates/index.ts:217

Day of week in US calendar ordering, with Sunday = 0 … Saturday = 6. This is the ordering used for the Sunday-anchored billing weeks (and the pay engine's Sunday-week overage detection).

Parameters

d

CalendarDate

The calendar date.

Returns

number

0 (Sunday) through 6 (Saturday).