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.
WeekDay
Syntax
integer WeekDay (integer datevalue )
Description
Get the weekday number.
Parameters
datevalue
A number representing a date.
Return Value
The return value is the day number in the range 1-7 (Sunday is 1, Saturday is 7).
Notes
- This function is equivalent to the “weekday” function as it can be used by the tester in a “#” expression.
- To get a day number in a month use the Day function.
- To get a text representation use the FormatDate function (with a “date format” setting like " ddd " or " dddd “).