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 (DateTime)

Subtracts a DateTime value from the value of this DateTime and produces a time interval.

[Visual Basic]
Overloads Public Function Subtract( _
   ByVal value As DateTime _
) As TimeSpan
[C#]
public TimeSpan Subtract(
   DateTime value
);
[C++]
public: TimeSpan Subtract(
   DateTime value
);
[JScript]
public function Subtract(
   value : DateTime
) : TimeSpan;

Parameters

value
The DateTime to subtract from this instance.

Return Value

A DateTime value with a Ticks value equal that is difference of the ticks value for this instance.

Remarks

The Subtract(DateTime) method subtracts a DateTime value from this instance of DateTime value by using a ticks value and presents the difference as a time interval as a TimeSpan (value: this- value).

See Also

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