DayPilot.Date.daysInYear

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

Declaration

DayPilot.Date.daysInYear()

Return Value

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

Example

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

See Also

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript