The events.forRange() method returns all events for the specified date/time range displayed by the JavaScript Monthly Calendar component.
DayPilot.Month.events.forRange(start, end);
start
- start of the range (DayPilot.Date or ISO string)
end
- end of the range (DayPilot.Date or ISO string)
Array of DayPilot.Event objects.
const start = DayPilot.Date.today().firstDayOfWeek("en-us");
const end = start.addDays(7);
const events = month.events.forRange(start, end);