Ubuntu: Hide time but display date in task bar


Is there a way to display only the date (ie, do not display the current time) in the indicators/tray area in Ubuntu with Unity?

In the settings panel at System Settings > Time & Date > Clock, there's an option to hide the date, but not the other way around.

The reason for this is that I find having the clock over there, staring at me, too distracting. On the other hand, I'd like to keep the indicator icon there, in order to have the clock handy when I need it (it's faster to click the icon than to type date in the Terminal).

I'd be willing to install other (3rd-party) indicator apps if the default one is not able to achieve this.


Using the command line:

dconf write /com/canonical/indicator/datetime/time-format "'custom'"  dconf write /com/canonical/indicator/datetime/custom-time-format "'%a %d %h'"  

For the datetime format, please refer to the strftime() syntax.

To reset the settings:

dconf reset /com/canonical/indicator/datetime/time-format   dconf reset /com/canonical/indicator/datetime/custom-time-format   


You can do this by using dconf-tools. So open a terminal and type:

sudo apt-get install dconf-tools  

Now, open dconf tools and go to com -> canonical -> indicator -> datetime

Change the value of time-format to custom and change the value of custom-time-format to %F %A. This will hide the time and display date as YYYY-mm-dd <full weekday name>. Refer to man date for other formats that you can use.

enter image description here

From man date:

%F     full date; same as %Y-%m-%d  %A     locale's full weekday name (e.g., Sunday)  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »