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 Specifier
Description
h
The hour number (12-hour clock) with no leading zero
hh
The hour number (12-hour clock) with a leading zero if the hour number is less than 10
H
The hour number (24-hour clock) with no leading zero
HH
The hour number (24-hour clock) with a leading zero if the hour number is less than 10
m
The minute number with no leading zero
mm
The minute number with a leading zero if the minute number is less than 10
s
The second number with no leading zero
ss
The second number with a leading zero if the second number is less than 10
tt
The AM/PM designation for a 12-hour clock literal
For date/time literals, the ShortDateFormat is used in conjunction with the ShortTimeFormat property, with a space separating the two.
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.