The default rules for determining business days in DayPilot Calendar are as follows:
If you need to define custom rules you have two options:
Example:
protected void DayPilotCalendar1_BeforeCellRender(object sender, BeforeCellRenderEventArgs e)
{
// Turn Saturday and Sunday into business days
if ((e.Start.DayOfWeek == DayOfWeek.Saturday || e.Start.DayOfWeek == DayOfWeek.Sunday)
|| (e.Start.Hour >= DayPilotCalendar1.BusinessBeginsHour && e.Start.Hour < DayPilotCalendar1.BusinessEndsHour))
{
e.IsBusiness = true;
}
}Controls: Calendar