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)
Returns an array of matching DayPilot.Event instances.
Both range boundaries accept either a DayPilot.Date instance or an ISO date/time string.
const start = DayPilot.Date.today().firstDayOfWeek("en-us");
const end = start.addDays(7);
const events = month.events.forRange(start, end);