SubtractMonths                                                                                     Function

 

SUBTRACTMONTHS(theDate as Date, Months as Integer)

 

Description

Subtracts Months from theDate and returns a new date value.

 

Example

Dim theDate as Date

Dim newDate as Date

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

newDate=SubtractMonths(theDate, 15) 'subtracts 15 months

newDate would now contain a date of March 1, 1997