[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Core.Rendering.JpCalendar.JapaneseCalendarEx.AddYears

AddYears Method

AddYears(DateTime, int)

Returns a DateTime that is the specified number of years away from the specified DateTime.

Declaration
public override DateTime AddYears(DateTime time, int years)
Parameters
Type Name Description
DateTime time

The DateTime to which to add years.

int years

The number of years to add.

Returns
Type Description
DateTime

The DateTime that results from adding the specified number of years to the specified DateTime.

Overrides
Exceptions
Type Condition
ArgumentOutOfRangeException

time is outside the supported range of the JapaneseCalendarEx type. -or-years is less than -10,000 or greater than 10,000.

ArgumentException

The resulting DateTime is outside the supported range.