calendar-work-week.png

This mode shows a work week.

The StartDate property is automatically set to the past Monday. The Days property is set to 5.

ASP.NET WebForms

<DayPilot:DayPilotCalendar runat="server" ID="DayPilotCalendar1"
  ViewType="WorkWeek"
  ...
/>

ASP.NET MVC

MVC View

@Html.DayPilotCalendar("dpc", new DayPilotCalendarConfig { 

  // ...
  ViewType = ViewType.WorkWeek,
  // ...
	
})

JavaScript

<div id="dp"></div>

<script type="text/javascript">
  var dp = new DayPilot.Calendar("dp");
  dp.viewType = "WorkWeek";
  // ...
  dp.init();
</script>