DayPilot.Date.dayOfYear

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

Declaration

DayPilot.Date.dayOfYear();

Return Value

A number specifying the day of year. January 1 returns 1. 

Example

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