The events.forRange() method returns all JavaScript Calendar events for the specified date/time range.
Declaration
DayPilot.Calendar.events.forRange(start, end)Parameters
start(DayPilot.Date | string) - start of the rangeend(DayPilot.Date | string) - end of the range
Return Value
Returns an array of DayPilot.Event objects.
Example
const events = calendar.events.forRange("2025-01-01T09:00:00", "2025-01-01T17:00:00");See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot