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(); // 31See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot