SubtractYears                                                                                        Function

 

SUBTRACTYEARS(theDate as Date, Years as Integer)

 

Returns: A new date

 

Description

Subtracts Years from theDate and produces a new date value.

 

Example

Dim theDate as Date

Dim newDate as Date

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

newDate=SubtractYears(theDate, 4) 'subtracts 4 years

 

newDate would now represent a date of March 1 , 1994