Skip to the calculator
Rule Calculator

Military Time Converter

With hour 2, minutes 30, military time converter comes to 1430 — military time. It is reached in 3 steps, the last of which is h24 * 100 + minute, and each one is printed on the page with its numbers filled in. The formula is the one published by NIST Time and Frequency Division, not an approximation fitted to it.

A clock time as military time, with the full chart of all twenty-four hours and the two readings people get wrong: midnight and noon.

By Alex Seote, Built and maintains Rule Calculator · Formula and sources checked · How we check

Hour 2, am or pm pm, Minutes 30

1430

Military time for the example below. Editing a field recomputes the calculator below; this figure holds the answer the page was loaded with.

It is written into the HTML rather than drawn by a script, so a search engine reading this page without running JavaScript still finds an answer.

Military time
1430
Hour on the 24-hour clock
meridiem_pm > 0 ? (hour12 == 12 ? 12 : hour12 + 12) : (hour12 == 12 ? 0 : hour12)14
Military time
h24 * 100 + minute1,430
Minutes since midnight
h24 * 60 + minute870

Ask about this in the chat

Worked example

2:30 pm is 1430. Add twelve to any pm hour except twelve itself, which stays 12 — and 12 am goes the other way, to 0000. Those two are the whole difficulty; every other hour is a straight addition.

How to work it out yourself

  1. 1.An am hour keeps its number: 9 am is 0900. The exception is 12 am, which becomes 0000 rather than 1200.
  2. 2.A pm hour gains twelve: 2 pm is 1400. The exception is 12 pm, which is already twelve and stays 1200.
  3. 3.Military time is written as four digits without a colon and spoken in hundreds — 1430 is "fourteen thirty", 0600 is "oh six hundred". The minutes never change in either direction.

Military time chart

HourMilitary time
11330
21430
31530
41630
51730
61830
71930
82030
92130
102230
112330
121230

Every hour on the chosen half of the day, on the minute you entered. Switch am and pm above to see the other twelve.

The formula

  1. Hour on the 24-hour clockmeridiem_pm > 0 ? (hour12 == 12 ? 12 : hour12 + 12) : (hour12 == 12 ? 0 : hour12)
  2. Military timeh24 * 100 + minute
  3. Minutes since midnighth24 * 60 + minute

Source: NIST Time and Frequency Division

Questions people actually ask

Is midnight 0000 or 2400?
Both are used and they mean different instants. 0000 is the start of a day; 2400 is the end of the previous one, and they are the same moment described from either side. A time of day is written 0000; 2400 appears where an interval has to close, such as a shift ending at midnight.
What is 12 pm in military time?
1200. Noon is the one pm hour that does not gain twelve, because it already is twelve. Its mirror image is 12 am, which becomes 0000 rather than 1200 — those two exceptions account for nearly every mistake in this conversion.
What time is 1800?
Six in the evening. Any figure above 1200 loses twelve to give the 12-hour reading and is pm: 1800 becomes 6 pm, 2145 becomes 9:45 pm. Below 1200 the hour is unchanged and am, except 00, which is 12 am.
Why is it written without a colon?
Because it is read as a single four-digit group rather than as hours and minutes. The colon belongs to the civilian 24-hour clock, which writes the same time as 14:30 and means exactly the same thing — the arithmetic is identical and only the notation differs.

Related

Put this calculator on your site

Free, no attribution required beyond the link.

<iframe src="https://rulecalculators.com/embed/military-time" width="100%" height="420" style="border:1px solid #e7e4de;border-radius:12px" title="Military Time Converter"></iframe>
Did this answer your question?