Adds a specified number of days to the value of the current instance.
- value
- A double containing the number of whole and fractional days. For example, 4.5 is equivalent to 4 days, 12 hours, 0 minutes, 0 seconds, 0 milliseconds, and 0 ticks. value can be negative or positive.
A DateTime instance set to the sum of the date and time represented by the current instance and the number of days represented by value.
Type Reason ArgumentOutOfRangeException The resulting DateTime is less than DateTime.MinValue or greater than DateTime.MaxValue.
Note: value is rounded to the nearest tick.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0