Utilities.DateToStr Method

Applies to TestComplete 12.60, last modified on September 17, 2018
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