NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DateTime.AddDays

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;

Parameters

value
A fractional number of days.

Return Value

DateTime value that results from adding a fractional number of days to this instance.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException If the resulting DateTime is outside the supported range.

Remarks

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.

See Also

DateTime Structure | DateTime Members | System Namespace | Double | Day