@technobuddha > library > Time > Year
Function: dayOfYear()
ts
function dayOfYear(input: Date, options: DateOptions): number;Defined in: day-of-year.ts:13
Calculates the day of the year for a given date.
Parameters
| Parameter | Type | Description |
|---|---|---|
input | Date | The date for which to calculate the day of the year. |
options | DateOptions | Optional settings. |
Returns
number
The day of the year as a number (1-based).