Customize the time and date display format of the Ubuntu panel
Although some options are available on the Ubuntu settings page, this quick tutorial will show you how to customize the time and date indicators on the Ubuntu panel more deeply.
Customize world date
Search for and install the dconf Editor in the Ubuntu Software Center before you start.
Start the software and follow these steps:
1. When dconf Editor is started, navigate to com-> canonical-> indicator-> datetime. Set the value of time-format to custom.
Custom time format
You can also perform the preceding operations using commands in the terminal:
gsettings set com.canonical.indicator.datetime time-format 'custom'
2. Now you can customize the format of time and date by editing the value of custom-time-format.
Custom-Time Format
You can also run the following command: (LCTT: FORMATVALUEHERE is replaced with the required format value)
gsettings set com.canonical.indicator.datetime custom-time-format 'FORMAT_VALUE_HERE'
The following parameter meanings:
- % A = abbreviation of the week name
- % A = complete spelling of the week name
- % B = abbreviated month name
- % B = complete spelling of the month name
- % D = date of each month
- % L = hour (1 .. 12), % I = hour (01 .. 12)
- % K = hour (1 .. 23), % H = hour (01 .. 23)
- % M = minute (00 .. 59)
- % P = noon, AM or PM, % P = am or pm.
- % S = second (00 .. 59)
You can open the terminal and Type A commandman date
And execute the command to learn more details.
Some examples of display format values for custom time and date:
% A % H: % M % m/% d/% Y
% A % r % B % d or % a % I: % M: % S % p % B % d
% A %-d % B % l: % M % P % z