# addDays Type documentation

## TypeScript declaration

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

**Kind:** constant

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

Get date delta based on the offset.

Returns: new date.

```
(date: Date, days: number) => Date = ...
```

```
addDays(date: Date, days: number): Date
```

Get date delta based on the offset.

Returns: new date.

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [date](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L409-L409>) | `Date` |  | • source date object. |
| [days](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L409-L409>) | `number` |  | • numeric offset of days. |

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