System::DateTimeOffset::AddYears method

DateTimeOffset::AddYears method

Adds a specified number of years to the DateTimeOffset object.

DateTimeOffset System::DateTimeOffset::AddYears(int years) const
ParameterTypeDescription
yearsintPositive or negative number of years.

ReturnValue

Result of operation.

See Also