# getFirstDateInYear Type documentation

## TypeScript declaration

### [getFirstDateInYear](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L532-L532>)

**Kind:** constant

```
import { getFirstDateInYear } from '@siemens/element-ng/datepicker';
```

Get the beginning of the year.

Returns: a new date object which starts a the first.

```
(current: Date) => Date = (current: Date): Date => new Date(current.getFullYear(), 0, 1)
```

```
getFirstDateInYear(current: Date): Date
```

Get the beginning of the year.

Returns: a new date object which starts a the first.

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [current](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L532-L532>) | `Date` |  | • a date object from where the first date in a year is derived. |

**Returns:** [Date](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date>)
