Subtracts a TimeSpan value from the value of this DateTime.
[Visual Basic] Overloads Public Function Subtract( _ ByVal value As TimeSpan _ ) As DateTime [C#] public DateTime Subtract( TimeSpan value ); [C++] public: DateTime Subtract( TimeSpan value ); [JScript] public function Subtract( value : TimeSpan ) : DateTime;
A DateTime value with a Ticks value equal to the difference of the ticks value of this instance.
The Subtract(TimeSpan) method subtracts a TimeSpan from this instance of DateTime and produces a new DateTime.
This method subtracts the values of a TimeSpan value from a DateTime value by using a ticks value and presents the difference as a DateTime value (value: this- value).
DateTime Structure | DateTime Members | System Namespace | DateTime.Subtract Overload List | TimeSpan