Syntax:
Then: xx = ADDMONTH(date,months)
Then: xx = ADDMONTH(date)
If "months" is not specified, one month is added.
Return value is a date field, the same edit type and length as date.
NOTE: If the resulting date would be past the end of the month, the last day of the month is returned.
The number of months to add can be negative to go backwards.
Version Ref: 4.8
Description:
Adds a specified number of months to a date.
Examples:
Show the date two months from now.
Then: msgbox "Two months from today is " & addmonth(@td,"2")
Warn two months before the due date. Assuming "startdate" is the starting date, and "duration" is the number of days.
If: @td gt addmonth(startdate + duration,"-2")
Then: msgbox "Less than two months before due date."