Utilities.DayOfWeek Method

Applies to TestComplete 15.70, last modified on December 17, 2024
This method is obsolete. See the Remarks section below.

Description

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

Declaration

Utilities.DayOfWeek(Date)

Date [in]    Required    Variant    
Result Integer

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

Date

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.

Remarks

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