The first day of week in the week view 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.

JavaScript

In the JavaScript calendar component, use the weekStarts property to set the first day of week:

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

ASP.NET WebForms

<DayPilot:DayPilotCalendar runat="server" id="DayPilotCalendar1"
  ...
  WeekStarts = "Sunday"
/>

ASP.NET MVC

@Html.DayPilotCalendar("dps", new DayPilotCalendarConfig {
  BackendUrl = ResolveUrl("~/Calendar/Backend"),
  ...
  WeekStarts = WeekStarts.Sunday
})