Skip to content

@technobuddha > library > Time > Month

Function: endOfMonth() ​

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

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

Determine the last day of the month containing the input date

Parameters ​

ParameterTypeDescription
inputDateThe date
optionsDateOptionssee DateOptions

Returns ​

Date

Midnight on the last day of the month corresponding to the input date

Default Value ​

ts
utc false