DateTime.Addition Operator
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Adds a specified time interval to a specified date and time, yielding a new date and time.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- d
- Type: System.DateTime
The first object to add.
- t
- Type: System.TimeSpan
The second object to add.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The resulting DateTime is earlier than DateTime.MinValue or later than DateTime.MaxValue. |
Show: