DayPilot.Date.daysInMonth

The daysInMonth() method returns the number of days in the specified month.

Declaration

DayPilot.Date.daysInMonth()

Return Value

Returns the number of days in the month of the current date.

Example

const daysInFebruary = new DayPilot.Date("2020-02-01").daysInMonth();  // 29
const daysInMarch = new DayPilot.Date("2020-03-15").daysInMonth();     // 31

See Also

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript