System::DateTime::AddDays method

DateTime::AddDays method

Returns a new instance of the DateTime class representing the date and time value which is the sum of the value represented by the current object and the specified number of days.

DateTime System::DateTime::AddDays(double value) const
ParameterTypeDescription
valuedoubleThe number of days to add; the value can be positive or negative

ReturnValue

A new instance of the DateTime class representing the date and time value which is the sum of the value represented by the current object and value days

See Also