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.
To format date in DD-MM-YYYY format, use the command date +%d-%m-%Y or printf "%(%d-%m-%Y)T\n" $EPOCHSECONDS .
Linux date Command Format Options%D – Display date as mm/dd/yy. %Y – Year (e.g., 2020) %m – Month (01-12)
time-format
to custom
.custom-time-format
, e.g. set it to %Y-%m-%d %H:%M:%S
for "2017-12-31 23:59:59" format.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/
How to do this in 2017 with Ubuntu 16.04 (Xenial Xerus) 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With