Skip to content

@technobuddha > library > Time > Month

Function: beginningOfMonth()

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

Defined in: beginning-of-month.ts:12

Determine the start of the month for a dateDetermine the start of the month for a date

Parameters

ParameterTypeDescription
inputDateThe date
optionsDateOptionssee DateOptions

Returns

Date

The date value for midnight on the first day of the specified month

Default Value

ts
utc false