Icon ShortTimeFormat Property

property ShortTimeFormat: String

Available In: Client and Server Applications

Specifies the format string used for time literals. The default value of this property is "hh:mm tt".

The following date format specifiers are supported:

Format SpecifierDescription
hThe hour number (12-hour clock) with no leading zero
hhThe hour number (12-hour clock) with a leading zero if the hour number is less than 10
HThe hour number (24-hour clock) with no leading zero
HHThe hour number (24-hour clock) with a leading zero if the hour number is less than 10
mThe minute number with no leading zero
mmThe minute number with a leading zero if the minute number is less than 10
sThe second number with no leading zero
ssThe second number with a leading zero if the second number is less than 10
ttThe AM/PM designation for a 12-hour clock literal

Information For date/time literals, the ShortDateFormat is used in conjunction with the ShortTimeFormat property, with a space separating the two.

Warning When specifying a ShortTimeFormat that uses a different time separator character, please make sure that you modify the TimeSeparator property before setting the new ShortTimeFormat value.
Image