This function adds or subtracts months to/from any given date.
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 instead of adding.
addMonths(timestamp, numbersOfMonths, timeZone) #Output: Number