The visibleEnd() method returns the date/time at the end of the Scheduler grid.
DayPilot.Scheduler.visibleEnd()Returns a DayPilot.Date object.
To get the end of the current viewport, use DayPilot.Scheduler.getViewport().
const dp = new DayPilot.Scheduler("dp", {
// ...
});
dp.init();
const end = dp.visibleEnd();DayPilot.Scheduler.visibleStart()