# getFirstDateInMonth Type documentation

## TypeScript declaration

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

**Kind:** constant

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

Get the beginning of the month.

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

```
(current: Date) => Date = ...
```

```
getFirstDateInMonth(current: Date): Date
```

Get the beginning of the month.

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#L516-L516>) | `Date` |  | • a date object from where the first date in a month is derived. |

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