Subtracts a specified TimeSpan from a specified DateTime, producing a new DateTime.
[C#] public static DateTime operator -( DateTime d, TimeSpan t ); [C++] public: static DateTime operator op_Subtraction( DateTime d, TimeSpan t ); [JScript] returnValue = d - t;
[Visual Basic] In Visual Basic, you cannot use the operators defined by a type, nor override them or define your own.
[JScript] In JScript, you can use the operators defined by a type, but you cannot override them or define your own.
A DateTime value with a Ticks value equal to the difference of the ticks value.
This operator subtracts a TimeSpan value from a DateTime value after converting them to ticks, and the difference is formatted as a DateTime value (d and t: d- t).
DateTime Structure | DateTime Members | System Namespace | DateTime Subtraction Operator Overload List | Ticks | TimeSpan