Utilities.DayOfWeek Method

Applies to TestComplete 14.30, last modified on November 21, 2019
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
aqDateTime.GetDayOfWeek Method
aqDateTime.GetDay Method
aqDateTime.GetDayOfYear Method
aqDateTime.Today Method
aqDateTime.Now Method
aqDateTime.SetDateElements Method
aqConvert.StrToDate Method
aqConvert.StrToDateTime Method

Highlight search results