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.
Use cases and examples
Use case JWT feature Workflow function Field type Automated action Parser functions Set a date two months after the end of the quarter nextTime() addMonths() Create a sub-task for every recurring deadline within a task addMonths() getMatchingValue() dateToString()