operator-=()

DateTime::operator-=(TimeSpan) 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.

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

Arguments

ParameterTypeDescription
valueTimeSpanThe time span to subtract

Return Value

A reference to the self

See Also