Returns the supplied date/time with the specified number of years added.
AddYears(date, numberOfYears)
date
The date/time that will have the numberOfYears added.
numberOfYears
DateTime
Yes
The number of years to add to the date.
Double
AddYears(#today#, 2)
Adds 2 years to the current date/time.
AddYears(#today#, -2)
Subtracts 2 years from the current date/time.
There was an error while loading. Please reload this page.