Utilities.DateToStr Method

Applies to TestComplete 14.10, last modified on June 5, 2019
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
aqConvert.DateTimeToStr Method
aqDateTime.Today Method
aqConvert.DateTimeToFormatStr Method
aqConvert.DateTimeToStr Method
aqConvert.StrToDate Method
aqConvert.StrToDateTime Method

Highlight search results