Platform SDK: International Features

Hour, Minute, and Second Format Pictures

The format picture for a time string consists of a combination of one string from each of these format types.

Hours Meaning
h Hours without leading zeros for single-digit hours (12-hour clock).
hh Hours with leading zeros for single-digit hours (12-hour clock).
H Hours without leading zeros for single-digit hours (24-hour clock).
HH Hours with leading zeros for single-digit hours (24-hour clock).
Minutes  
m Minutes without leading zeros for single-digit minutes.
mm Minutes with leading zeros for single-digit minutes.
Seconds  
s Seconds without leading zeros for single-digit seconds.
ss Seconds with leading zeros for single-digit seconds.
Time Marker  
t One character–time marker string.
tt Multicharacter–time marker string.

Note  In the preceding formats, the letters m, s, and t must be lowercase, and the letter h must be lowercase to denote the 12-hour clock or uppercase to denote the 24-hour clock.