The first day of week can be set using the weekStarts property.

Notes

  • The weekStarts property only affects the time header groups.
  • The week numbers are calculated according to ISO 8601 (assumes Monday is the first day of week).

JavaScript

Possible values:

  • - Sunday
  • 1- Monday
  • 2 - Tuesday
  • 3 - Wednesday
  • 4 - Thursday
  • 5 - Friday
  • 6 - Saturday
  • "Auto" (default)
<div id="dp"></div>
<script type="text/javascript">
  var dp = new DayPilot.Scheduler("dp");
  dp.weekStarts = 0;
  // ...
  dp.init();
</script>

ASP.NET WebForms

Possible values:

  • Monday
  • Tuesday
  • Wednesday
  • Thursday
  • Friday
  • Saturday
  • Sunday
  • Auto (default)

The automatic mode uses the current culture to determine the first day of week.

<DayPilot:DayPilotScheduler runat="server" id="DayPilotScheduler1"
  ...
  WeekStarts = "Sunday"
/>

ASP.NET MVC

Possible values:

  • Monday
  • Tuesday
  • Wednesday
  • Thursday
  • Friday
  • Saturday
  • Sunday
  • Auto (default)

The automatic mode uses the current culture to determine the first day of week.

@Html.DayPilotScheduler("dps", new DayPilotSchedulerConfig {
  BackendUrl = ResolveUrl("~/Scheduler/Backend"),
  ...
  WeekStarts = WeekStarts.Sunday
})