Set Different Work Hours in JavaScript Scheduler
By default, work hours are defined by the workHours property and apply to all days. To highlight different work-hour ranges for specific dates, use the setWorkHours method.
setWorkHours accepts:
- a single
Dateor an array ofDateobjects, - a start time value,
- an end time value.
The example below sets work hours for February 15 and 17 to 11:00 AM–8:00 PM while leaving other days at their default hours.