scheduler-weekstarts600x180.png

The first day of week can be set using WeekStarts property.

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.

Notes

  • The WeekStarts property only affects the header grouping. That means it has no effect if the value of CellGroupBy is other than "Week".
  • The week numbers are calculated according to ISO 8601 (assumes Monday is the first day of week).

ASP.NET WebForms

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

ASP.NET MVC

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

JavaScript

<div id="dp"></div>
<script type="text/javascript">
  var dp = new DayPilot.Scheduler("dp");
  dp.weekStarts = 0;
  // ...
  dp.init();
</script>