I'm using Ubuntu 20.04 LTS. I want date and time in GNOME Shell's top bar to have the following format:

Sun Jun 13 07:26AM IST 2021

instead of the current:

Jun 13 12:53 PM

current date and time format

How can I achieve this?

  • 1
    For the week day 'Sun' to be added, i suggest you install the gnome-tweak-tool. And enable the Top Bar > Clock > Weekday
    – Aravinth
    Commented Jun 13, 2021 at 8:47
  • Does this answer your question? How do I change the date format in Gnome 3 shell?
    – muru
    Commented Jun 13, 2021 at 9:47
  • Says a lot about the developers of Gnome. Don't you know that 'merika rules the world, at least they think so.
    – null
    Commented Mar 6, 2023 at 0:06

2 Answers 2


For GNOME versions up to 44 (Ubuntu 23.04)

There are several extensions in the GNOME Shell Extensions website, but most of them are not actively supported anymore. I'm suggesting you to use the Panel Date Format extension, which works fine on Ubuntu 20.04 and is still maintained.

To customize your clock after installing the extension, follow these steps:

  1. Open Extensions, find the Panel Date Format extension in the list and click the gear icon next to it.

  2. You will be presented with this Preferences menu (image from the extension's GitHub repository):

    preferences menu

  3. In the Format textbox enter the following to get the time format you want:

    %a %e %b %I:%M%p %Z %Y

    You can find more info about the date time format syntax here (link also mentioned in the extension's preferences).

  4. Restart GNOME Shell to ensure that the setting is applied by pressing Alt+F2, entering r and pressing Enter.

Your panel's clock should now have the appearance you want!

  • Thank you all will try and tell.
    – sivasdpi
    Commented Jun 13, 2021 at 9:55
  • @sivasdpi Did it work? Commented Jun 29, 2021 at 3:47
  • Hi I tried unknown's command. It worked. Your suggestion felt difficult . Sorry
    – sivasdpi
    Commented Jun 29, 2021 at 7:11

For GNOME versions up to 46 (Ubuntu 24.04)*

The Panel Date Format by atareao extension mentioned in my other answer supports, at the time of writing this answer, GNOME versions up to 44 (Ubuntu versions up to 23.04). If you want to format the date and time using GNOME 45, you can use the Panel Date Format by KEIII extension instead (the extensions unfortunately have the same names so I used the names of their authors to differentiate between them).

After installing this extension, you can customize the date and time on the panel the way you want by running this command:

dconf write /org/gnome/shell/extensions/panel-date-format/format "'%a %b %m %I:%M%p %Z %Y'"

This extension does not have any preferences, but the time and date customization using the above command is straightforward: just put the format specifiers you want inside "'...'". The extension supports the format specifiers found here: https://docs.gtk.org/glib/method.DateTime.format.html

*at the time of writing

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .