The visibleEnd() method returns the end of the last visible day (date/time value).
DayPilot.Calendar.visibleEnd()Returns a DayPilot.Date object representing the end of the last visible day.
The returned value reflects the current calendar view and settings such as startDate, viewType, and weekStart.
const dp = new DayPilot.Calendar("dp", {
startDate: "2019-01-03", // Thursday
viewType: "Week",
weekStart: 0 // Sunday
});
dp.init();
// ...
const end = dp.visibleEnd(); // Sunday, 2019-01-05T00:00:00