DayPilot.Date.lastDayOfMonth

The lastDayOfMonth() method returns the start of the last day of the specified month.

Declaration

DayPilot.Date.lastDayOfMonth();

Return Value

DayPilot.Date object representing the start of the last day of month 

Example

var last = new DayPilot.Date("2020-02-01").lastDayOfMonth();   // new DayPilot.Date("2020-02-29T00:00:00")