{"id":5482,"date":"2015-12-07T19:46:32","date_gmt":"2015-12-07T19:46:32","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=5482"},"modified":"2019-02-02T17:13:57","modified_gmt":"2019-02-02T17:13:57","slug":"time-date-format-ubuntu-panel","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2015\/12\/time-date-format-ubuntu-panel\/","title":{"rendered":"How to Customize Time &#038; Date Format in Ubuntu Panel"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/08\/ubuntu_tips1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/08\/ubuntu_tips1.png\" alt=\"Time &amp; Date format\" width=\"245\" height=\"250\" class=\"aligncenter size-full wp-image-5221\" \/><\/a><\/p>\n<p>This quick tutorial is going to show you how to customize your Time &#038; Date indicator in Ubuntu panel, though  there are already a few options available in the settings page.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/12\/custom-timedate.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/12\/custom-timedate.jpg\" alt=\"custom-timedate\" width=\"368\" height=\"180\" class=\"aligncenter size-full wp-image-5484\" \/><\/a><\/p>\n<div class=\"arconix-box arconix-box-yellow\"><i class='fa fa-2x pull-left fa-lightbulb-o'><\/i><div class=\"arconix-box-content\">This does no longer work for Ubuntu 18.04 and higher as they switched to Gnome Desktop, see <a href=\"https:\/\/ubuntuhandbook.org\/index.php\/2019\/02\/customize-time-date-format-ubuntu-18-04-gnome-panel\/\">this tutorial<\/a> instead.<\/div><\/div>\n<p>To get started, search for and install <b>dconf Editor<\/b> in Ubuntu Software Center. Then launch the software and follow below steps:<\/p>\n<p><b>1.<\/b> When dconf Editor launches, navigate to <u>com -> canonical -> indicator -> datetime<\/u>. Set the value of <b>time-format<\/b> to <b>custom<\/b>.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/12\/time-format.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/12\/time-format-450x201.jpg\" alt=\"custom time format\" width=\"450\" height=\"201\" class=\"aligncenter size-medium wp-image-5485\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/12\/time-format-450x201.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/12\/time-format-600x268.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/12\/time-format.jpg 831w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<p>You can also do this via a command in terminal:<\/p>\n<pre style=\"border:none;\">gsettings set com.canonical.indicator.datetime time-format 'custom'<\/pre>\n<p><b>2.<\/b> Now you can customize the Time &#038; Date format by editing the value of <b>custom-time-format<\/b>.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/12\/customize-timeformat.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/12\/customize-timeformat-450x193.jpg\" alt=\"customize-timeformat\" width=\"450\" height=\"193\" class=\"aligncenter size-medium wp-image-5486\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/12\/customize-timeformat-450x193.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/12\/customize-timeformat-600x257.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/12\/customize-timeformat.jpg 832w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<p>You can also do this via command:<\/p>\n<pre style=\"border:none;\">gsettings set com.canonical.indicator.datetime custom-time-format 'FORMAT_VALUE_HERE'<\/pre>\n<p>Interpreted sequences are:<\/p>\n<ul>\n<li>%a = abbreviated weekday name<\/li>\n<li>%A = full weekday name<\/li>\n<li>%b = abbreviated month name<\/li>\n<li>%B = full month name<\/li>\n<li>%d = day of month<\/li>\n<li>%l = hour ( 1..12), %I = hour (01..12)<\/li>\n<li>%k = hour ( 1..23), %H = hour (01..23)<\/li>\n<li>%M = minute (00..59)<\/li>\n<li>%p = AM or PM, %P = am or pm.<\/li>\n<li>%S = second (00..59)<\/li>\n<li>open terminal and run command <code>man date<\/code> to get more details.<\/li>\n<\/ul>\n<p>Some examples:<\/p>\n<p>custom time format value: <b>%a %H:%M %m\/%d\/%Y<\/b><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/12\/exam-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/12\/exam-1.jpg\" alt=\"exam-1\" width=\"223\" height=\"40\" class=\"aligncenter size-full wp-image-5487\" \/><\/a><\/p>\n<p><b>%a %r %b %d<\/b> or <b>%a %I:%M:%S %p %b %d<\/b><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/12\/exam-2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/12\/exam-2.jpg\" alt=\"exam-2\" width=\"226\" height=\"51\" class=\"aligncenter size-full wp-image-5488\" \/><\/a><\/p>\n<p><b>%a %-d %b %l:%M %P %z<\/b><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/12\/exam-3.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/12\/exam-3.jpg\" alt=\"exam-3\" width=\"215\" height=\"41\" class=\"aligncenter size-full wp-image-5489\" \/><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>This quick tutorial is going to show you how to customize your Time &#038; Date indicator in Ubuntu panel, though there are already a few options available in the settings page. To get started, search for and install dconf Editor in Ubuntu Software Center. Then launch the software and follow below steps: 1. When dconf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1319],"class_list":["post-5482","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-custom-time-format"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/5482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=5482"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/5482\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=5482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=5482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=5482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}