DayPilot.Month.events.forRange

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

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

DayPilot.Month Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript