Skip to content

@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

ParameterTypeDescription
inputDateThe date for which to calculate the day of the year.
optionsDateOptionsOptional settings.

Returns

number

The day of the year as a number (1-based).