Utilities.DayOfWeek Method

Applies to TestComplete 15.10, last modified on December 01, 2021
This method is obsolete. See the Remarks section below.


The Utilities.DayOfWeek method returns the day of the week for the date specified by the Date parameter.



Date [in]    Required    Variant    
Result Integer

Applies To

The method is applied to the following object:


The method has the following parameter:


Specifies the date for which you are going to get the day of the week.

Result Value

An integer value from 1 to 7. 1 corresponds to Sunday, 7 - to Saturday.


This method is obsolete. It is supported for backward compatibility only. To get the day of the week for a specific date, use the aqDateTime.GetDayOfWeek method.

See Also

Working With Dates
GetDayOfWeek Method
GetDay Method
GetDayOfYear Method
Today Method
Now Method
SetDateElements Method
StrToDate Method
StrToDateTime Method

Highlight search results