Writing Time in HH:mm Format

What HH:mm time notation changes, how it differs from hh:mm and MM, and when a 24-hour time string stays readable and usable after copying or sharing.

HH:mm is a compact way to write a time of day: two digits for the hour on a 24-hour clock, a colon, and two digits for the minute. Afternoon examples include 14:05 and 23:59, and midnight is 00:00. The format looks simple, but people searching for date hh mm often mix up tokens that look nearly identical. This review covers what the format actually changes, where it causes confusion, and when another notation serves readers better.

Is HH:mm suitable for your use?

HH:mm works well when a time needs to be unambiguous, sortable and compact. Examples include schedules, logs, transit timetables, data exports and interfaces shared across regions. Because the 24-hour clock gives every hour of the day its own number, 08:00 and 20:00 cannot be confused, and zero-padded values sort correctly as text.

The decisive tradeoff is that HH:mm records only the hour and minute. It drops seconds, the date and the time zone. A value like 09:30 is clear on a meeting card for a single day and location. It is incomplete for anything that crosses days, time zones or daylight saving changes.

For a general US audience, the 12-hour clock with AM or PM is the conventional everyday form. Many readers find 2:05 PM more natural than 14:05. Prefer the familiar local notation for consumer-facing text in the US. Keep HH:mm for technical, international or machine-processed contexts, or show both forms where the audience is mixed.

What the transformation actually changes

Converting a time to HH:mm is a formatting step. It turns an underlying time value into a string of characters. The stored value, such as a timestamp in a database, does not change. Only its displayed representation changes. Problems start when the formatted string is treated as the source of truth, because the details it leaves out cannot be recovered from it.

Some example conversions from 12-hour to 24-hour notation:

  • 12:30 AM becomes 00:30
  • 9:07 AM becomes 09:07
  • 12:30 PM becomes 12:30
  • 2:05 PM becomes 14:05
  • 11:59 PM becomes 23:59

The midnight and noon hours are where manual conversions most often go wrong. In 24-hour notation, the hour after midnight is 00, not 12. The hour after noon remains 12.

HH versus hh, and mm versus MM

In formatting patterns, letter case changes meaning. In the pattern conventions used by Java, ICU-based libraries, .NET and several JavaScript date libraries, HH means the hour from 00 to 23 and hh means the hour from 01 to 12. A pattern of hh:mm without an AM/PM marker therefore produces ambiguous output, with 02:15 standing for either morning or afternoon. Lowercase mm means minutes, while uppercase MM means the month. Writing HH:MM in those systems outputs the hour followed by the month number, not the minute.

Standards documents add to the confusion. ISO 8601 describes its own time representation using a notation written as hh:mm, where hh is the hour on a 24-hour basis. When someone writes hh:mm in prose, check whether they mean the ISO-style description or a 12-hour formatting token.

System | 24-hour hour | 12-hour hour | Minute | Month | AM/PM marker
Java, ICU, many JS libraries | HH | hh | mm | MM | a
.NET | HH | hh | mm | MM | tt
C/POSIX strftime and similar | %H | %I | %M | %m | %p

Spreadsheets follow their own rules. In Microsoft Excel number formats, h or hh shows a 24-hour value unless the format also contains an AM/PM element. The m or mm code is read as minutes only when it follows an hour code or precedes a seconds code; otherwise it is read as the month. Check the documentation for the specific tool rather than assuming a pattern behaves the same everywhere.

Pattern   Input time      Output
HH:mm     2:05 PM         14:05
hh:mm     2:05 PM         02:05   (ambiguous without AM/PM)
hh:mm a   2:05 PM         02:05 PM
HH:MM     2:05 PM, Oct    14:10   (hour and month, not minutes)

Separators and locale

The colon is common but not universal. Some locales use a period between hours and minutes, and localized formatters may follow those conventions automatically. If a string must be parsed by software, fix the separator and pattern explicitly. Do not rely on a locale-dependent default.

Will the result stay readable after copying or sharing?

A standard HH:mm string uses only ASCII digits and an ordinary colon. It generally survives copy and paste, search and editing intact. The risk comes from lookalike characters. Some sources use characters that resemble a colon, such as the ratio sign or the fullwidth colon, or digits from other Unicode blocks. These look correct on screen but can break parsing, sorting, search matching and validation. If a time string fails to parse even though it looks right, inspect its characters, not just how it renders.

In right-to-left text, a time is a run of digits and punctuation inside surrounding text. Bidirectional display rules usually keep the digits in their expected order. Adjacent punctuation, AM/PM markers or units can still appear in unexpected positions depending on context. Test rendering in the actual destination rather than assuming one correct preview applies everywhere.

For accessibility, plain HH:mm text is preferable to images of times or decorative character substitutions, because assistive technology reads characters, not appearance. The supplied material does not include tests of how specific screen readers announce values like 14:05. Do not assume a particular reading, such as fourteen oh five or two oh five PM. On web pages, the HTML time element can carry a machine-readable value in its datetime attribute alongside the visible text. That gives software a reliable value without changing what readers see.

Provide a plain-text equivalent, or a fuller timestamp, whenever the time will be read out of its original context. That includes forwarded messages, calendar invitations across time zones, exported records and anything a reader might act on days later. In those cases, include the date and time zone, or use a complete ISO 8601 timestamp for machine use.

Evidence gaps

No tool-specific evidence was supplied for this review, so it does not rate individual converters, formatters or apps. Claims about how a particular platform renders, stores or announces HH:mm values need that platform's documentation or a scoped test. The same applies to any tool's handling of your data, which cannot be judged from its interface or marketing.

Bottom line

Use HH:mm when you need a short, unambiguous 24-hour time in a context that already supplies the date and time zone. Use uppercase HH for the 24-hour hour and lowercase mm for minutes. Avoid lookalike characters. For general US readers, or for any time that travels beyond its original context, use the familiar 12-hour form or a complete timestamp.