Join Wintertainment 2021 to share your stories, have fun, earn community badges, and more!

Utilities.ShortTimeFormat Property

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


Use the Utilities.ShortTimeFormat property to specify the format string that is used to convert time values to a string that contains only hours and minutes. For more information about format specifiers, see Date and Time Format Specifiers.



Read-Write Property String

Applies To

The property is applied to the following object:

Property Value

The string used to convert time values to a string that contains only hours and minutes.


Utilities.ShortTimeFormat is obsolete and is supported for backward compatibility only. To get or set the short time format, use the aqEnvironment.GetLocaleInfo and aqEnvironment.SetLocaleInfo functions with LOCALE_SSHORTTIME as the second parameter.

JavaScript, JScript

var short_time_format = aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SSHORTTIME);


short_time_format = aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SSHORTTIME)


short_time_format = aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SSHORTTIME)
Log.Message short_time_format


short_time_format := aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SSHORTTIME);

C++Script, C#Script

var short_time_format = aqEnvironment["GetLocaleInfo"](LOCALE_USER_DEFAULT, LOCALE_SSHORTTIME);

Or, if you want to format time values using locale settings, use the methods of the aqDateTime object. They use locale-specific time separators when parsing values.

See Also

Working With Time
Date and Time Format Specifiers
Today Method
Now Method
Time Method
DateTimeToStr Method
StrToDateTime Method
StrToTime Method
StrToDate Method

Highlight search results