The selectTimeRange() method selects a Calendar time range programmatically.
DayPilot.Calendar.selectTimeRange(start, end, [resource[, dontFireEvent]]);start (DayPilot.Date or string) - selection start as a DayPilot.Date instance or an ISO string
end (DayPilot.Date or string) - selection end as a DayPilot.Date instance or an ISO string
resource (string or number) - optional selection resource ID
dontFireEvent (boolean) - optional flag that prevents onTimeRangeSelect and onTimeRangeSelected from firing when set to true
The selection start and end must be in the same calendar column.
Available since 2022.3.5368.
dp.selectTimeRange("2022-11-01T10:00:00", "2022-11-01T12:00:00");