aqDateTime.GetHours Method

Applies to TestComplete 15.63, last modified on April 10, 2024


Use the aqDateTime.GetHours method to get the hours part of the specified Date/Time value. The method uses the 24-hour format.



InputDate [in]    Required    Date/Time    
Result Integer

Applies To

The method is applied to the following object:


The method has the following parameter:


Specifies the Date/Time value whose hours portion you want to obtain.

Result Value

An integer number ranging from 0 to 23 that corresponds to the hours part of the given time value.

See Also

Working With Dates
Working With Time
GetDayOfWeek Method
GetDayOfYear Method
GetDay Method
GetMonth Method
GetYear Method
GetMinutes Method
GetSeconds Method

Highlight search results