@technobuddha > library > Time > Week
Function: beginningOfWeek()
ts
function beginningOfWeek(input: Date, options: DateOptions): Date;Defined in: beginning-of-week.ts:13
Determine the start of the week for a date
Parameters
| Parameter | Type | Description |
|---|---|---|
input | Date | The date |
options | DateOptions | see DateOptions |
Returns
The date value for midnight on the first day of the specified week
Default Value
ts
utc false