Skip to content

firstDay

The day weeks start on, as an ISO weekday: 1 is Monday, 7 is Sunday.

TypeWeekday — 1 | 2 | 3 | 4 | 5 | 6 | 7
Defaultthe locale's first day of the week
Live update (update())Yes
Declared inpackages/core/src/kernel.ts

It decides where a week view starts, the first column of a month, and how weeks are numbered. Left out, it is the locale’s: Monday in most of Europe, Sunday in the United States, Saturday in much of the Arabic-speaking world.

The numbers are ISO weekdays, as everywhere in DzCalendar (hiddenDays, businessHours): 1 Monday … 7 Sunday — not the 0-to-6 of JavaScript’s Date. update({ firstDay: null }) goes back to the locale’s.

import { createCalendar } from '@dzcalendar/dom';
const calendar = createCalendar(element, { timeZone: 'America/New_York', initialView: 'dayGridMonth', firstDay: 7 });
// Later: back to the locale's.
calendar.update({ firstDay: null });

In Angular and Vue it goes in options; in React it is a prop.

The month, its weeks starting on Sunday (7).