Page History
UI Text Box | ||||
---|---|---|---|---|
| ||||
This function adds or subtracts months to or from any given date. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
addMonths(timestamp, numberOfMonths, timeZone) #Output: Number |
UI Expand | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||
|
UI Expand | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||
Parameters used in this function
| ||||||||||||||||||||||
Page properties | ||||||||||||||||||||||
| Status | |||||||||||||||||||||
Tech review |
| |||||||||||||||||||||
Style guide |
|
Status | ||
---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
hidden | true |
---|
|
| The time zone used for the calculation. |
ui-text-box | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Expand | ||||||||
| ||||||||
This function returns a
|
UI Text Box | ||
---|---|---|
| ||
Use this function instead of simply adding Negative values for n are used in order to subtract instead of adding. |
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 | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
addMonths(timestamp, months, timeZone time_zone) #Output: number |
UI Expand | ||||
---|---|---|---|---|
| ||||
Parser expression | Description |
UI Text Box | ||
---|---|---|
| ||
timestamp t has the value: March, 25th 2011 23:15 |
This function returns a timestamp as a
Status | ||||
---|---|---|---|---|
|
title | Output |
---|
type | note |
---|