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.
AddYears
Syntax
integer AddYears (integer datevalue, integer years)
Description
Add years to a date.
Parameters
datevalue
A number representing a date.
years
The number of years to add.
Return Value
The resultant date.
Notes
- This function is equivalent to the plusy function as it can be used by the tester in a “#” expression.
- To subtract years, use a negative value for the years parameter.