first day of week 655x261

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.

ASP.NET WebForms

<DayPilot:DayPilotMonth runat="server" id="DayPilotMonth1"
  ...
  WeekStarts = "Sunday"
/>

JavaScript

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

ASP.NET MVC

@Html.DayPilotMonth("dpm", new DayPilotMonthConfig {
  BackendUrl = ResolveUrl("~/Month/Backend"),
  ...
  WeekStarts = WeekStarts.Sunday
})