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

Array of DayPilot.Event objects.

Example

const start = DayPilot.Date.today().firstDayOfWeek("en-us");
const end = start.addDays(7);
const events = month.events.forRange(start, end);