ADDMONTH |
addmonth allows you to add a number of months to a date.
addmonth(date_exp, num_exp)
|
Element |
Description |
Restrictions |
|
date_exp |
Date Expression |
None |
|
num_exp |
Any Numeric Expression |
None |
# Date of the previous month PREC = addmonth(date$,-1) # What day will it be in one month?JOUR = day$(addmonth(date$,1))
# Date CalculationECHEANCE = addmonth(gdat$(JOUR,MOIS,ANNEE),DELAI)
The addmonth function allows you to add a number of months to a date. If this number is negative or greater than 12, it is recalculated and the correction is made for the year. The result is the Date type.
|
Error |
Description |
|
ERDATE (56 |
Date invalid |
|
ERMODE (10) |
Type parameter invalid |
|
|