DayPilot.Gantt.weekStarts

The weekStarts property determines the first day of week. By default, the JavaScript Gantt Chart 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"
  • (Sunday)
  • 1 (Monday)
  • 2 (Tuesday)
  • 3 (Wednesday)
  • 4 (Thursday)
  • 5 (Friday)
  • 6 (Saturday)

Default Value

"Auto"

Example

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