The visibleEnd() method returns the end of the last visible day (date/time value).
Declaration
DayPilot.Calendar.visibleEnd()Return Value
Returns a DayPilot.Date object representing the end of the last visible day.
Notes
The returned value reflects the current calendar view and settings such as startDate, viewType, and weekStart.
Example
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:00See Also
DayPilot.Calendar.visibleStart()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot