@technobuddha > library > Time > Year
Function: beginningOfYear()
ts
function beginningOfYear(input: Date, options: DateOptions): Date;Defined in: beginning-of-year.ts:12
Determine the start of the year 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 year
Default Value
ts
utc false