DateTime::Subtraction Operator (DateTime, TimeSpan)
Silverlight
Subtracts a specified time interval from a specified date and time and returns a new date and time.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Parameters
- d
- Type: System::DateTime
The date and time value to subtract from (the minuend).
- t
- Type: System::TimeSpan
The time interval to subtract (the subtrahend).
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The resulting DateTime is earlier than DateTime::MinValue or later than DateTime::MaxValue. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
ADD
Show: