Medialooks Knowledge Base Support Center

Contact Us

Date and time formatting for Text items

You can specify a format for text items that indicates time (Timer or Stopwatch) or Date (DateTime).

Time formatting

Time format is set as "hh:mm:ss". Here is a list of all possible settings:

 Parameter  Description
hHours with no leading zero for single-digit hours; 12-hour clock
hhHours with leading zero for single-digit hours; 12-hour clock
HHours with no leading zero for single-digit hours; 24-hour clock
HHHours with leading zero for single-digit hours; 24-hour clock
mMinutes with no leading zero for single-digit minutes
mmMinutes with leading zero for single-digit minutes
sSeconds with no leading zero for single-digit seconds
ssSeconds with leading zero for single-digit seconds
tOne character time marker string, such as A or P
ttMulti-character time marker string, such as AM or PM

Date formatting

Date format is set as "yyyy/MM/dd". Here are the tables with possible settings:

The following table defines the format types used to represent days.

 Format type Description
dDay of the month as digits without leading zeros for single-digit days.
ddDay of the month as digits with leading zeros for single-digit days.
dddAbbreviated day of the week, for example, "Mon" in English (United States).
ddddDay of a week.


The following table defines the format types used to represent months.

 Format type Description
MMonth as digits without leading zeros for single-digit months.
MMMonth as digits with leading zeros for single-digit months.
MMMAbbreviated month, for example, "Nov" in English (United States).
MMMMMonth, for example, "November" for English (United States), and "Noviembre" for Spanish (Spain).


The following table defines the format types used to represent years.

 Format type Description
yYear represented only by the last digit.
yyYear represented only by the last two digits. A leading zero is added for single-digit years.
yyyyYear represented by a full four or five digits, depending on the calendar used. Thai Buddhist and Korean calendars have five-digit years. The "yyyy" pattern shows five digits for these two calendars, and four digits for all other supported calendars. Calendars that have single-digit or two-digit years, such as for the Japanese Emperor era, are represented differently. A single-digit year is represented with a leading zero, for example, "03". A two-digit year is represented with two digits, for example, "13". No additional leading zeros are displayed.
yyyyyBehaves identically to "yyyy".


The following table defines the format types used to represent a period or era.

 Format type Description
g, ggPeriod/era string. The "g" and "gg" format pictures in a date string are ignored if there is no associated era or period string.