AddYears                                                                                                 Function

 

ADDYEARS(theDate as Date, Years as Integer)

 

Description

Adds Years to theDate and returns the new date value.

 

 

Example

Dim theDate as Date

Dim newDate as Date

TheDate=ToDate("03/01/98")

newDate=AddYears(theDate, 4) 'adds 4 years

 

newDate will now have a date of March 1 , 2002