Adds the specified number of months to the value of the given DateTime.
Syntax
Smartsite SXML | Copy Code |
---|---|
datetime datetime.addmonths(datetime dt, integer months) |
Parameters
Name | Data Type | Description |
---|---|---|
dt | DateTime | A DateTime. |
months | Integer | A number of months. This parameter can be negative or positive. |
Return Value
Data Type | Description |
---|---|
DateTime | A DateTime whose value is the sum of the date and time represented by this instance and the given number of months. |