DayPilot.Date.lastDayOfMonth

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

DayPilot.Date Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript