The events.forRange() method returns all events for the specified date/time range displayed by the JavaScript Monthly Calendar component.
Declaration
DayPilot.Month.events.forRange(start, end);Parameters
start- start of the range (DayPilot.Date or ISO string)end- end of the range (DayPilot.Date or ISO string)
Return Value
Returns an array of matching DayPilot.Event instances.
Notes
Both range boundaries accept either a DayPilot.Date instance or an ISO date/time string.
Example
const start = DayPilot.Date.today().firstDayOfWeek("en-us");
const end = start.addDays(7);
const events = month.events.forRange(start, end);See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot