Returns the DateTime result of adding this instance to a fractional number of days.
[Visual Basic] Public Function AddDays( _ ByVal value As Double _ ) As DateTime [C#] public DateTime AddDays( double value ); [C++] public: DateTime AddDays( double value ); [JScript] public function AddDays( value : double ) : DateTime;
DateTime value that results from adding a fractional number of days to this instance.
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | If the resulting DateTime is outside the supported range. |
The AddDays method returns the value parameter that is computed by rounding the fractional number of days specified by value to the nearest millisecond, and then the result of that interval is added to this instance of DateTime.
The value parameter argument can be negative.
DateTime Structure | DateTime Members | System Namespace | Double | Day