How to Change Time Format in Ubuntu: 12h or 24h
Changing the time format in Ubuntu lets you pick between a 12-hour clock with AM/PM or a 24-hour clock. Ubuntu uses this setting to show the time on your desktop, like in the top bar.
Many people prefer the 12-hour format because it’s what they see every day, while others need the clear, precise 24-hour format, sometimes called military time.
You can easily switch between these two formats within your system’s settings, making sure your clock display fits how you like to see time.
Open Settings, go to System, then Date & Time, and select your preferred Time Format from the dropdown. Alternatively, use the terminal command gsettings set org.gnome.desktop.interface clock-format 12h or 24h.
Quick Settings Menu
You can quickly change the time format in Ubuntu using the Quick Settings menu, which is the fastest way to access your clock settings.
Change system time format using the Settings app
The system time format in Ubuntu can be changed to either 12-hour or 24-hour directly from the main Settings app. This is a straightforward way to adjust your clock display, and it’s easy to find in your system’s main options menu.

Alternatively, click the Quick Settings menu at the top-right and select the gear icon.

In the Settings sidebar, scroll down and click on System, then select Date & Time.

Look for the Time Format section. Click the drop-down menu to choose between 24-hour or AM/PM.

Your choice takes effect instantly.
Change system time format using the command terminal console
You can change the system time format in Ubuntu using the command terminal if you prefer typing commands. This method lets you quickly switch between 12-hour and 24-hour formats by entering a specific command.
Open the terminal by pressing Ctrl+Alt+T.

To set your clock to a 12-hour format, type this command and hit Enter:
gsettings set org.gnome.desktop.interface clock-format 12h
To switch back to a 24-hour format, type this command and hit Enter:
gsettings set org.gnome.desktop.interface clock-format 24h
Change system time format using the Dconf Editor
For advanced users, you can change the system time format in Ubuntu using the Dconf Editor. This tool allows for fine-tuning system settings. However, it’s recommended only for those comfortable with advanced system adjustments.
Disclaimer: Dconf Editor is an advanced tool that allows you to change settings that affect the core of your system. It is not recommended for basic users as incorrect changes can affect your system stability.

After launching Dconf Editor, navigate to this path:
Turn the “Use default value” switch off. Then, enter ’12h’ or ’24h’ into the Custom value box to set your preference.

Conclusion
You’ve learned how to toggle your time display using the Settings app, the terminal, or the Dconf Editor. Choose the method that feels most comfortable for you.
How do I change the time to 24h in Ubuntu?
Click Date & Time, then adjust the time and date. You can change how the hour is displayed by selecting 24-hour or AM/PM for Time Format.
How to change time formatting?
Right click on the date. And time then click adjust date/. Time then at the right under related settings click date time and regional formatting.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
[…] Linux default displays the system time in a 24-hour or military time format. Therefore, the only information on the Top menu bar is the clock. If you want, you can also add […]