The events.forRange() method returns Scheduler events for the specified date/time range.
Declaration
DayPilot.Scheduler.events.forRange([start[, end]])Parameters
start(DayPilot.Date or string in ISO 8601 format) - start of the range; ifnull, visibleStart() is usedend(DayPilot.Date or string in ISO 8601 format) - end of the range; ifnullor omitted, visibleEnd() is used
Return Value
Returns an array of DayPilot.Event objects.
Notes
Use this method to collect all events in a custom date/time range or in the current visible range.
Example
const events = dp.events.forRange("2025-01-10T00:00:00", "2025-01-15T00:00:00");See Also
DayPilot.Scheduler.visibleStart()
DayPilot.Scheduler.visibleEnd()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot