DayPilot.Date.dayOfYear

The dayOfYear() method returns the day of year for the specified date.

Declaration

DayPilot.Date.dayOfYear()

Return Value

Returns a number specifying the day of year. January 1 returns 1.

Example

const dayOfYear = new DayPilot.Date("2020-01-04").dayOfYear();  // 4

See Also

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript