# previousMonth Type documentation

## TypeScript declaration

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

**Kind:** constant

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

Returns the last day of the previous month of the given date object.

Returns: A date of the last day of the previous month of the given day.

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

```
previousMonth(date: Date): Date
```

Returns the last day of the previous month of the given date object.

Returns: A date of the last day of the previous month of the given day.

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [date](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L786-L786>) | `Date` |  | • The date for which the previous month is returned. |

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