dim()

Function group Execute on client Platform(s)
Date and Time YES All

Syntax

dim(datestring,number)

Description

Increments a datestring by a number of months and returns the result.

Months containing different numbers of days are accounted for. For example, Jan 31 96 increased by one month gives Feb 29 96, but beware, Feb 29 96 decreased by one month (using a negative value) gives Jan 29 96, not Jan 31 96.

Example

Calculate lDate as  dim(dat('5/8/03'),15)
# returns 'AUG 8 04', if #FD = 'm D Y'

Calculate lDate as dim(dat('5/8/03'),-1)
# returns 'APR 8 03', if #FD = 'm D Y'