Customize Time & Date Format in Ubuntu 18.04 Gnome Panel

Customize Time & Date Format in Ubuntu 18.04 Gnome Panel

This quick tutorial shows how to change the time and date clock format in Ubuntu 18.04’s default Gnome desktop panel.

Since Ubuntu switched to Gnome 3 desktop, you can no longer use dconf editor to customize clock format. Instead, a Gnome Shell extension can do the job.

Customize Time & Date Format in Ubuntu 18.04 Gnome Panel

1. Open Ubuntu Software, search for and install Clock Override extension.

Customize Time & Date Format in Ubuntu 18.04 Gnome Panel

2. Once installed, either launch the settings from install page, or use Gnome Tweaks -> Extensions.

Customize Time & Date Format in Ubuntu 18.04 Gnome Panel

3. When the settigns page opens, type in the box to change the time format.

Customize Time & Date Format in Ubuntu 18.04 Gnome Panel

Here are some codes:

  • %a = abbreviated weekday name
  • %A = full weekday name
  • %b = abbreviated month name
  • %B = full month name
  • %d = day of month
  • %H = hour (00..23)
  • %M = minute (00..59)
  • %p = AM or PM, %P = am or pm.
  • %S = second (00..59)

For a full list of code, run man date in terminal:

Customize Time & Date Format in Ubuntu 18.04 Gnome Panel

Original Article