The events.forRange() method returns Scheduler events for the specified date/time range.
DayPilot.Scheduler.events.forRange([start[, end]])start (DayPilot.Date or string in ISO 8601 format) - start of the range; if null, visibleStart() is used
end (DayPilot.Date or string in ISO 8601 format) - end of the range; if null or omitted, visibleEnd() is used
Returns an array of DayPilot.Event objects.
Use this method to collect all events in a custom date/time range or in the current visible range.
const events = dp.events.forRange("2025-01-10T00:00:00", "2025-01-15T00:00:00");DayPilot.Scheduler.visibleStart()