DayPilot.Date.daysInYear

The daysInYear() method returns the number of days in the specified year.

Declaration

DayPilot.Date.daysInYear();

Return Value

The number of days.

Example

var numberOfDaysIn2020 = new DayPilot.Date("2020-02-01").daysInYear();   // 366