The visibleStart() method returns the start of the first visible day.
Declaration
DayPilot.Calendar.visibleStart()Return Value
Returns a DayPilot.Date object representing the start of the first 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.visibleStart(); // Sunday, 2018-12-30T00:00:00See Also
DayPilot.Calendar.visibleEnd()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot