System::DateTime::AddMonths method

DateTime::AddMonths 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 months.

DateTime System::DateTime::AddMonths(int value) const
ParameterTypeDescription
valueintThe number of months 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 months

See Also