AddMonths()

Calendar::AddMonths(DateTime, int) const method

Adds months to time point.

virtual DateTime System::Globalization::Calendar::AddMonths(DateTime time, int months) const

Arguments

ParameterTypeDescription
timeDateTimeOriginal time point value.
monthsintNumber of months to add.

Return Value

Time point after calculation is done.

See Also