Leading Zeros in Times
A leading zero before the hour is format-dependent. Locale and interface conventions may show an hour with or without one, so writers should follow the selected 12-hour, 24-hour, locale, or technical format instead of imposing one universal rule.
Use or omit a leading zero according to the selected time format and locale; consistency within the same product or document matters more than a universal house rule.
Key details
Important caveats
Consistency Boundary
A product or document should apply its chosen time convention consistently; technical formats may be stricter than prose.
Locale Boundary
Microsoft documents that hour values may display with or without a leading zero across locale formats.
Further guidance
Practical Application
Use the hour width defined by the selected 12-hour, 24-hour, locale, interface, or technical format, then apply it consistently within the same context.
Reader Check
Does the chosen time format explicitly or conventionally use a leading zero for single-digit hours?
Worked Example
A product locale may display “9:05,” while a fixed 24-hour format may display “09:05.” Keep each convention internally consistent instead of mixing them.
Sources and evidence
Sources are shown with the role they play in this guide. Historical or style-sensitive claims are kept within the evidence boundary described above.
- Format dates and times (opens in a new tab)Microsoft Globalization · Locale-dependent date/time fields, including optional leading zeros in many human-facing formats