Utilities.DateToStr Method

Applies to TestComplete 15.64, last modified on May 16, 2024
This method is obsolete. See the Remarks section below.

Description

The Utilities.DateToStr method converts a Variant value holding a date to a string using the format specified by the ShortDateFormat property.

Declaration

Utilities.DateToStr(Date)

Date [in]    Required    Variant    
Result String

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

Date

Specifies the variant value that stores the desired date.

Result Value

The string that stores the converted date.

Remarks

This method is obsolete. It is supported for backward compatibility only. To convert a date value to a string, use the aqConvert.DateTimeToStr method.

See Also

Working With Dates
DateTimeToStr Method
Today Method
DateTimeToFormatStr Method
DateTimeToStr Method
StrToDate Method
StrToDateTime Method

Highlight search results