AddYears()

Calendar::AddYears(DateTime, int) const method

Adds years to time point.

virtual DateTime System::Globalization::Calendar::AddYears(DateTime time, int years) const

Arguments

ParameterTypeDescription
timeDateTimeOriginal time point value.
yearsintNumber of years to add.

Return Value

Time point after calculation is done.

See Also