DayPilot.Date.daysInMonth

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

Declaration

DayPilot.Date.daysInMonth();

Return Value

Number of days.

Example

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