Skip to content

@technobuddha > library > Time > Year

Function: endOfYear()

ts
function endOfYear(input: Date, options: DateOptions): Date;

Defined in: end-of-year.ts:13

Determine the last day of the year containing a date

Parameters

ParameterTypeDescription
inputDateThe date
optionsDateOptionssee DateOptions

Returns

Date

Midnight of the last day of the year containing the input date

Default Value

ts
utc false