Utilities.DateTimeToStr Method

Applies to TestComplete 15.10, last modified on December 01, 2021
This method is obsolete. See the Remarks section below.


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.



DateTime [in]    Required    Variant    
Result String

Applies To

The method is applied to the following object:


The method has the following parameter:


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

Result Value

The resulting string that stores the given date and time.


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
DateTimeToStr Method
DateTimeToFormatStr Method
Today Method
Now Method

Highlight search results