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