Utilities.DateTimeToStr Method

Applies to TestComplete 14.10, last modified on June 5, 2019
This method is obsolete. See the Remarks section below.

Description

The Utilities.DateTimeToStr method converts the variant value that stores date and time to a string. The DateTime parameter specifies the value to be converted. The date format in the resulting string is specified by the ShortDateFormat property. The time format is specified by the LongTimeFormat property.

Declaration

Utilities.DateTimeToStr(DateTime)

DateTime [in]    Required    Variant    
Result String

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

DateTime

Specifies the variant value that stores the desired date and time.

Result Value

The resulting string that stores the given date and time.

Remarks

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

See Also

Working With Dates
Working With Time
aqConvert.DateTimeToStr Method
aqConvert.DateTimeToFormatStr Method
aqDateTime.Today Method
aqDateTime.Now Method

Highlight search results