Utilities.DecodeDate Method

Applies to TestComplete 15.47, last modified on January 20, 2023
This method is obsolete. See the Remarks section below.

Description

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

Declaration

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:

Parameters

The method has the following parameters:

Date

Specifies the date that will be decoded.

Year

Holds the year extracted from the specified date.

Month

Holds the month extracted from the specified date.

Day

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

Result Value

None.

Remarks

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