Skip to content

@technobuddha > library > Time > Day

Function: beginningOfDay()

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

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

Determine the start of the day for a date

Parameters

ParameterTypeDescription
inputDateThe date
optionsDateOptionssee DateOptions

Returns

Date

The date value for midnight on the specified day

Default Value

ts
utc false