Format: String;
The Format property determines the custom format of date or time displaying.
The value of the Format property is set using the combination of the following constants. All other characters are identified as text and displayed in the component without changes. If it is required that one or several constants are considered as text, determine them between escape apostrophes. For example, on determining the hh 'h' mm 'm' format the following value is displayed: 10 h 35 m.
Constant | Description |
d | Day is displayed as number without foregoing zero (1-31). |
dd | Day is displayed as number with foregoing zero (01-31). |
ddd | Day is displayed as abbreviation (Mon - Sun). |
dddd | Day is displayed with the full name (Monday - Sunday). |
h | Hours are displayed without foregoing zero in twelve-hour format (0-12). |
hh | Hours are displayed with foregoing zero in twelve-hour format (00-12). |
H | Hours are displayed without foregoing zero in twenty four-hour format (0-24). |
HH | Hours are displayed with foregoing zero in twenty four-hour format (00-24). |
m | Minutes are displayed without foregoing zero (0-59). |
mm | Minutes are displayed with foregoing zero (00-59). |
M | Month is displayed as number without foregoing zero (1-12). |
MM | Month is displayed as number with foregoing zero (01-12). |
MMM | Month is displayed as abbreviation (Jan-Feb). |
MMMM | Month is displayed with full name (January - February). |
t | It displays one character of time designation AM/PM. For example, if the AM/PM designation is set, the A or P letter is displayed. NOTE. Designation of AM/PM time is taken from regional parameter settings. |
tt | The determined AM/PM time is displayed. For example, AM or PM. NOTE. Designation of AM/PM time is taken from regional parameter settings. |
yy | Year is displayed as two-figure number (00-99). |
yyyy | Year is displayed as four-figure number (0000-9999). |
s | Seconds are displayed without foregoing zero (0-59). |
ss | Seconds are displayed with foregoing zero (00-59). |
See also: