Changing short date format in Ubuntu

0 votes
asked Oct 1, 2008 by checkit

How do I change the system-wide short date format in Ubuntu? For example, Thunderbird is showing dates in the DD/MM/YY format, and I would like to change it to MM/DD/YY or YYYY-MM-DD.

The best information I can find so far is in this thread:

http://ubuntuforums.org/showthread.php?t=193916

Edit: I want to change the system-wide date format, so that all my applications use this new date format.

3 Answers

0 votes
answered Oct 1, 2008 by agnul

Thunderbird uses the system's date format, and that format depends on the system's locale settings. You have two options:

  1. modify the system locale, the instructions are in the forum thread you linked above, or
  2. set LC_TIME to a locale that uses the format you want. The article linked by Craig H suggests en_DK.
0 votes
answered Sep 15, 2017 by nishi
  • Install and launch "dconf Editor", navigate to com -> canonical -> indicator -> datetime.
  • Set the value of time-format to custom.
  • Customize the Time & Date format by editing the value of custom-time-format, e.g. set it to %Y-%m-%d %H:%M:%S for "2017-12-31 23:59:59" format.
  • Re-login to see effect of the changes.

You can also do this via a command in terminal:

gsettings set com.canonical.indicator.datetime time-format 'custom'
gsettings set com.canonical.indicator.datetime custom-time-format '%Y-%m-%d %H:%M:%S'

Source: http://ubuntuhandbook.org/index.php/2015/12/time-date-format-ubuntu-panel/

0 votes
answered Sep 15, 2017 by scottk

This is an old question about Ubuntu in 2008, but if anyone wants to know how to do this in 2017 with Ubuntu 16.06, it is described here. Cut/Paste follows below in case that site goes away:

Change date and measurement formats

You can control the formats that are used for dates, times, numbers, currency, and measurement to match the local customs of your region.

  • Click the icon at the very right of the menu bar and select System Settings.
  • Open Language Support and select the Regional Formats tab.
  • Select the region that most closely matches the formats you'd like to use. By default, the list only shows regions that use the language
    set on the Language tab.
  • You have to log out and back in for these changes to take effect.
    Click the icon at the very right of the menu bar and select Log Out
    to log out.
  • After you've selected a region, the area below the list shows various examples of how dates and other values are shown. Although not shown in the examples, your region also controls the starting day of the
    week in calendars.
Welcome to Q&A, where you can ask questions and receive answers from other members of the community.
Website Online Counter

...