## Date::operator-(const Duration\&) const method


Subtracts a time interval from the current [Date](../).

```cpp
Date Aspose::Cells::Date::operator-(const Duration &ts) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| ts | const Duration\& | The [Duration](../../duration/) to subtract. |

## ReturnValue

A new [Date](../) with the applied offset.

## See Also

* Class [Vector](../../vector/)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## Date::operator-(const Date\&) const method


Computes the difference between two [Date](../) instances.

```cpp
Duration Aspose::Cells::Date::operator-(const Date &other) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| other | const Date\& | The other [Date](../). |

## ReturnValue

A [Duration](../../duration/) representing the interval between the two dates.

## See Also

* Class [Vector](../../vector/)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
