Date.addYears

Increments a date by some number of years. If the date is February 29, and the destination year is not a leap year, the date will be changed to February 28. The date must be valid.

class Date
void
addYears
(
uint nYears
)

Parameters

nYears uint

number of years to move forward