Utilities.DecodeDate Method

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


Use the Utilities.DecodeDate method to extract the year, month and day of the month from the date specified by the Date parameter.


Utilities.DecodeDate(Date, Year, Month, Day)

Date [in]    Required    Variant    
Year [out]    Required    Integer    
Month [out]    Required    Integer    
Day [out]    Required    Integer    
Result None

Applies To

The method is applied to the following object:


The method has the following parameters:


Specifies the date that will be decoded.


Holds the year extracted from the specified date.


Holds the month extracted from the specified date.


Holds the day of the month extracted from the specified date.

Result Value



Currently, this function works only in VBScript and DelphiScript scripts.

The Utilities.DecodeDate method is obsolete and supported for backward compatibility only. To extract the year, month and day parts of a specific date, use the aqDateTime.GetYear, aqDateTime.GetMonth and aqDateTime.GetDay methods, respectively.

See Also

Working With Dates
GetYear Method
GetMonth Method
GetDay Method
Today Method
Now Method
SetDateElements Method
IsLeapYear Method
AddMonths Method
SetDateElements Method

Highlight search results