To set 24-hour time in Windows 11, open Settings, go to Time & language > Language & region, click Regional format, then Date & time format or Change formats (the label depends on your Windows 11 version), and pick a Short time option without AM or PM. Your taskbar clock will then show times like 21:30 instead of 9:30 PM.
This is sometimes called military time. It only changes how the time looks, not the time itself. Microsoft covers the clock settings on its time and date settings page.
How to Change to 24-Hour Time in Settings
- Press Windows + I to open Settings.
- Click Time & language.
- Click Language & region.
- Click Regional format to expand it, then click Date & time format. Some Windows 11 versions label this button Change formats.
- Open the Short time menu and pick an option without AM or PM, such as 21:30.
- Open the Long time menu and pick the matching 24-hour option, such as 21:30:45.

The taskbar clock switches to 24-hour time right away. Short time is what you see in the taskbar, and Long time is used in places that show seconds.
How to Change to 24-Hour Time in Control Panel
This method lets you choose the exact format codes.
- Open Control Panel. If you’re not sure how, see how to open Control Panel in Windows 11.
- Under Clock and Region, click Change date, time, or number formats.
- On the Formats tab, under Date and time formats, set Short time to HH:mm.
- Set Long time to HH:mm:ss.
- Click Apply, then OK.

Windows uses the 24-hour format everywhere that follows your regional settings.
What the format codes mean
| Code | Meaning | Example |
|---|---|---|
| HH | Hour, 24-hour clock, with leading zero | 09, 21 |
| H | Hour, 24-hour clock, no leading zero | 9, 21 |
| h or hh | Hour, 12-hour clock | 9 or 09 |
| mm | Minutes | 05 |
| ss | Seconds | 45 |
| tt | AM or PM | PM |
An uppercase HH means a 24-hour clock. A lowercase h means a 12-hour clock, and tt adds AM or PM. To switch back to a 12-hour clock, choose Short time and Long time formats that include tt.
Show Seconds in the Taskbar Clock
Microsoft’s time settings page notes that the taskbar clock normally doesn’t show seconds. To add them, go to Settings > Time & language > Date & time and turn on Show seconds in system tray clock. Microsoft notes this uses more power.
What If an App Still Shows AM and PM?
- Close the app and open it again so it picks up the new setting.
- Some apps have their own time setting and don’t follow Windows. Microsoft notes that Outlook uses your computer’s region settings, so the steps above change Outlook’s calendar too.
- Websites and web apps may use your account settings on that site instead of Windows.
Frequently Asked Questions
How do I go back to 12-hour time?
Use the same steps and pick a Short time option with AM or PM. See how to set a 12-hour clock in Windows 11.
What if the time itself is wrong?
Changing the format won’t fix a wrong time. Here’s how to change the date and time in Windows 11.
Can I change the date format too?
Yes, on the same screen. See how to change the date format in Windows 11.
Want a cleaner taskbar too? Here’s how to turn off the news feed in Windows 11.

Matthew Burleigh is the founder, head writer, and editor of Solve Your Tech, which he launched in 2012. He has written technology tutorials since 2008 and worked in IT since 2003, including small-business support, IT management, and consulting. He holds Bachelor’s and Master’s degrees in Computer Science from Arizona State University.
Matthew writes practical guides for Windows, iPhone and iPad, Microsoft Office, Outlook, Google apps, and Android. Solve Your Tech’s guides are checked step by step against the device or app maker’s own documentation and tested on his own devices whenever he has the hardware or software, with clear steps, sources, and update dates.
Read more about Matthew and how Solve Your Tech writes and updates its guides, or report a correction.