This function adds or subtracts months to or from any given date.
addMonths(timestamp, numberOfMonths, timeZone) #Output: Number
Use this function instead of simply adding
n * {MONTH}
, since
{MONTH}
is a macro equivalent to
30 *
{DAY
}
, not taking into account that there are months with 31/28/29 days.
Negative values for n are used in order to subtract.