Page History
Page properties | |||||||
---|---|---|---|---|---|---|---|
| Status | ||||||
Tech review |
| ||||||
Style guide |
|
Status | ||
---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
hidden | true |
---|
size | medium |
---|---|
type | info |
This function adds or subtracts months to /or from any given date.
type | tip |
---|
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.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
addMonths(timestamp, numbersOfMonthsnumberOfMonths, timeZone) #Output: Number |
UI Expand | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||
|
UI Expand | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||
Parameters used in this function
|
UI Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
The This function returns a
|
UI Text Box | ||
---|---|---|
| ||
Use this function instead of simply adding Negative values for n are used in order to subtract. |
Use cases and examples
Page properties report firstcolumn Use case headings JWT feature, Workflow function, Field type, Automated action, Parser functions cql label = "parser_func_addmonths" and space = currentSpace()
Page properties | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||
|
Page properties | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|