DayPilot.Calendar.weekStarts

The weekStarts property (number | "Auto") determines the first day of week used by the JavaScript Calendar component.

Declaration

DayPilot.Calendar.weekStarts

Possible Values

  • "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).

Default Value

"Auto"

Notes

This property affects week-based views such as Week View and Work Week View.

Examples

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"
  <!-- ... -->
/>

See Also

DayPilot.Calendar.locale

First Day of Week [doc.daypilot.org]

DayPilot.Calendar Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript