Formatting the Hour, Minute, and Period

You can use template strings to format the appearance of the items which appear in the hour, minute, and period select lists. The template string can contain any characters that you want, but there are special format specifiers which you can use when displaying the different portions of a time.

You can use the following format specifiers with the TimePicker hourPattern property:

Image {hour.integer}

Image {hour.integer(n)}

You can use the following format specifiers with the TimePicker minutePattern property:

{minute.integer} ...

Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.