The lastDayOfMonth() method returns the start of the last day of the specified month.
Declaration
DayPilot.Date.lastDayOfMonth();Return Value
Returns a DayPilot.Date object representing the start of the last day of the month.
Notes
The returned value is normalized to the beginning of the day (T00:00:00).
Example
const last = new DayPilot.Date("2020-02-01").lastDayOfMonth(); // new DayPilot.Date("2020-02-29T00:00:00")See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot