The visibleEnd() method returns the end of the last visible day.
DayPilot.Navigator.visibleEnd()This method has no parameters.
Returns a DayPilot.Date object representing the end of the last visible day.
In most cases, this date is different from the last day of the last visible month.
You can use visibleEnd() together with DayPilot.Navigator.visibleStart() to get the visible range and load free/busy data when the view changes.
const nav = new DayPilot.Navigator("nav", {
// ...
});
nav.init();
// ...
const end = nav.visibleEnd();