<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`DurationValue`](DurationValue) › [`addToDate`](DurationValue/addToDate)
## DurationValue.addToDate() method
Modifies the provided by this duration.
1.10.0
**Signature:**
```typescript
addToDate(value: DateValue, subtract?: boolean): DateValue;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>value</code> | [`DateValue`](DateValue) | |
| <code>subtract</code> | <code>boolean</code> | _(Optional)_ |
**Returns:**
[`DateValue`](DateValue)