AddYears()

DateTimeOffset::AddYears(int) const method

Adds a specified number of years to the DateTimeOffset object.

DateTimeOffset System::DateTimeOffset::AddYears(int years) const

Arguments

ParameterTypeDescription
yearsintPositive or negative number of years.

Return Value

Result of operation.

See Also