Click or drag to resize
DateTimeAddDays Method
Returns a new DateTime that adds the specified number of days to the value of this instance.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public DateTime AddDays(
	double value
)

Parameters

value
Type: SystemDouble
A number of whole and fractional days. The value parameter can be negative or positive.

Return Value

Type: DateTime
An object whose value is the sum of the date and time represented by this instance and the number of days represented by value.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThe resulting DateTime is less than MinValue or greater than MaxValue.
See Also