Skip to content

@technobuddha > library > Time > Week

Function: dayOfWeek() ​

ts
function dayOfWeek(input: Date, options: DateOptions): DayOfWeek;

Defined in: day-of-week.ts:13

Determine the day of the week for a specific date

Parameters ​

ParameterTypeDescription
inputDateThe date
optionsDateOptionssee DateOptions

Returns ​

DayOfWeek

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

Default Value ​

ts
utc false