NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DateTime.Subtract (TimeSpan)

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;

Parameters

value
The TimeSpan to subtract from this instance.

Return Value

A DateTime value with a Ticks value equal to the difference of the ticks value of this instance.

Remarks

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).

See Also

DateTime Structure | DateTime Members | System Namespace | DateTime.Subtract Overload List | TimeSpan