Skip to content

@technobuddha > library > Time > Month

Function: daysInMonth()

ts
function daysInMonth(input: Date, options: DateOptions): number;

Defined in: days-in-month.ts:13

Determine the number of days in the month for a date

Parameters

ParameterTypeDescription
inputDateThe date
optionsDateOptionssee DateOptions

Returns

number

The number of days in the specified month

Default Value

ts
utc false