DayPilot.Scheduler.weekStarts

The weekStarts property determines the first day of week. By default, the JavaScript Scheduler uses the "Auto" value which uses the weekStarts value of the current locale. You can use a number to set the first day of week explicitly.

Possible Values

  • "Auto"

  • 0 (Sunday)

  • 1 (Monday)

  • 2 (Tuesday)

  • 3 (Wednesday)

  • 4 (Thursday)

  • 5 (Friday)

  • 6 (Saturday)

Default Value

"Auto"

Example

const scheduler = new DayPilot.Scheduler("dp", {
  weekStarts: 0,
  // ...
});
scheduler.init();