Automation Guide
Action-based testing language
TestArchitect Automation Classes
Engine class methods ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAAAXklEQVRIiWNgGAWjAAoYoZhmhk9kYGCYQStLHBgYGP4xMDD8h1pEE0vSkSyhmU9GqCVMtHABJYCmQTR0DXdgoCCjMROh5iEDA4MgAwPDRQYGhlyoRVQHNC3sRsEQBwD2mR7t73r7NQAAAABJRU5ErkJggg==)
The requested page is not available for selected version.
AddMonths
Syntax
integer AddMonths (integer datevalue, integer months)
Description
Add months to a date.
Parameters
datevalue
A number representing a date.
months
The number of months to add.
Return Value
The resultant date.
Notes
- For purposes of this function, the addition of a month involves incrementing the month while maintaining the same cardinal day of the month. In cases where this would result in a non-valid date (e.g., adding a month to May 31, thus producing June 31), the built-in setting add month compensation is referred to. A value of up sets the date to the 1st of the next month (July 1), while a value of down rolls back the date to the nearest earlier valid one (June 30). A value of error causes a diagnostic to be issued.
- This function is equivalent to the plusm function as it can be used by the tester in a “#” expression.
- To subtract months, use a negative value for the months parameter.