System::Globalization::Calendar::AddYears method

Calendar::AddYears method

Adds years to time point.

virtual DateTime System::Globalization::Calendar::AddYears(DateTime time, int years) const
ParameterTypeDescription
timeDateTimeOriginal time point value.
yearsintNumber of years to add.

ReturnValue

Time point after calculation is done.

See Also