## DateTime::operator-= method


Sets the current object to the date and time value that is the result of subtraction of the specified time span from the date and time value represented by the current object.

```cpp
DateTime & System::DateTime::operator-=(TimeSpan value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | TimeSpan | The time span to subtract |

### ReturnValue

A reference to the self

## See Also

* Class [DateTime](../)
* Class [TimeSpan](../../timespan/)
* Class [DateTime](../)
* Namespace [System](../../)
* Library [Aspose.PUB for C++](../../../)
