aqDateTime Object Methods

Applies to TestComplete 15.68, last modified on October 03, 2024

The aqDateTime object contains the following methods:

Method List

Name Description
AddDays Adds or subtracts the specified number of days to (from) a date/time value.
AddHours Adds or subtracts the specified number of hours to (from) a date/time value.
AddMinutes Adds or subtracts the specified number of minutes to (from) a date/time value.
AddMonths Adds or subtracts the specified number of months to (from) a date/time value.
AddSeconds Adds or subtracts the specified number of seconds to (from) a date/time value.
AddTime Adds or subtracts the specified number of days, hours, minutes and seconds to (from) a date/time value.
Compare Compares two specified date/time values.
GetDay Returns the ordinal number of a day in a month.
GetDayOfWeek Returns the day of the week for the specified date.
GetDayOfYear Returns the ordinal number of a day in a year.
GetHours Returns the hours part of the specified time value.
GetMinutes Returns the minutes part of the specified time value.
GetMonth Returns the month number of the specified date.
GetSeconds Returns the seconds part of the specified time value.
GetYear Returns the year number of the specified date.
IsLeapYear Indicates whether the specified year is a leap year.
Now Returns the current date and time.
SetDateElements Returns the Date variable having the specified year, month and day.
SetDateTimeElements Returns the Date variable having the specified date and time portions.
SetSystemDateTime Sets the specified date and time as the system date and time.
SetTimeElements Returns the Date variable having the specified hour, minute and second.
Time Returns the current time.
TimeInterval Calculates the absolute difference between two date/time values.
Today Returns the current date.

See Also

aqDateTime Object

Highlight search results