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 Subtraction Operator

[To be supplied.]

[Visual Basic] In Visual Basic, you cannot use the operators defined by a type, nor override them or define your own.

Overload List [C#, C++, JScript]

Subtracts a specified TimeSpan from a specified DateTime, producing a new DateTime.

[C#] public static DateTime operator -(DateTime, TimeSpan);
[C++] public: static DateTime operator op_Subtraction(DateTime, TimeSpan);
[JScript] Subtraction Operator (DateTime, TimeSpan)

Subtracts a DateTime value from a DateTime value, producing a time interval (TimeSpan).

[C#] public static TimeSpan operator -(DateTime, DateTime);
[C++] public: static TimeSpan operator op_Subtraction(DateTime, DateTime);
[JScript] Subtraction Operator (DateTime, DateTime)

See Also

DateTime Structure | DateTime Members | System Namespace