# getLastDateInMonth Type documentation

## TypeScript declaration

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

**Kind:** constant

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

Get the last date of the month.

Returns: a new date object which is the last day in the current month.

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

```
getLastDateInMonth(current: Date): Date
```

Get the last date of the month.

Returns: a new date object which is the last day in the current month.

#### Parameters

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

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