System::Globalization::Calendar::AddMonths method

Calendar::AddMonths method

Adds months to time point.

virtual DateTime System::Globalization::Calendar::AddMonths(DateTime time, int months) const
ParameterTypeDescription
timeDateTimeOriginal time point value.
monthsintNumber of months to add.

ReturnValue

Time point after calculation is done.

See Also