The weekStarts property (number | "Auto") determines the first day of week used by the JavaScript Calendar component.
DayPilot.Calendar.weekStarts"Auto" - uses the current DayPilot.Calendar.locale to determine the first day of week.
0-6 - sets the first day of week explicitly (0 = Sunday, 1 = Monday, 2 = Tuesday, 3 = Wednesday, 4 = Thursday, 5 = Friday, 6 = Saturday).
"Auto"This property affects week-based views such as Week View and Work Week View.
JavaScript
const calendar = new DayPilot.Calendar("calendar", {
weekStarts: 6, // Saturday
// ...
});
calendar.init();Angular
<daypilot-calendar [config]="config"></daypilot-calendar>config: DayPilot.CalendarConfig = {
weekStarts: 6, // Saturday
// ...
};React
<DayPilotCalendar
weekStarts={6}
{/* ... */}
/>Vue
<DayPilotCalendar
:weekStarts="6"
<!-- ... -->
/>First Day of Week [doc.daypilot.org]