How to display date under time in GNOME












4















In Ubuntu 18.04, my current desktop looks like this:



screenshot



How do I display date under time in GNOME panel as below?



screenshot










share|improve this question

























  • the second image you got it from other pc or your pc?

    – PRATAP
    Oct 8 '18 at 4:39











  • just edited.. but found a solution now to achieve that

    – Sathish Kanna
    Oct 8 '18 at 5:13











  • Oh, thats nice. You can write your own Answer and accept it.

    – PRATAP
    Oct 8 '18 at 5:14






  • 1





    in clock override extension added this " %I:%m %p%n %d-%m-%Y"

    – Sathish Kanna
    Oct 8 '18 at 5:15











  • i tried your code. its nice. but alignment issues are there. its not perfectly in the center to each line.

    – PRATAP
    Oct 8 '18 at 5:18
















4















In Ubuntu 18.04, my current desktop looks like this:



screenshot



How do I display date under time in GNOME panel as below?



screenshot










share|improve this question

























  • the second image you got it from other pc or your pc?

    – PRATAP
    Oct 8 '18 at 4:39











  • just edited.. but found a solution now to achieve that

    – Sathish Kanna
    Oct 8 '18 at 5:13











  • Oh, thats nice. You can write your own Answer and accept it.

    – PRATAP
    Oct 8 '18 at 5:14






  • 1





    in clock override extension added this " %I:%m %p%n %d-%m-%Y"

    – Sathish Kanna
    Oct 8 '18 at 5:15











  • i tried your code. its nice. but alignment issues are there. its not perfectly in the center to each line.

    – PRATAP
    Oct 8 '18 at 5:18














4












4








4


2






In Ubuntu 18.04, my current desktop looks like this:



screenshot



How do I display date under time in GNOME panel as below?



screenshot










share|improve this question
















In Ubuntu 18.04, my current desktop looks like this:



screenshot



How do I display date under time in GNOME panel as below?



screenshot







themes gnome-shell date






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 8 '18 at 5:32









pomsky

32.2k11100131




32.2k11100131










asked Oct 7 '18 at 20:02









Sathish KannaSathish Kanna

988




988













  • the second image you got it from other pc or your pc?

    – PRATAP
    Oct 8 '18 at 4:39











  • just edited.. but found a solution now to achieve that

    – Sathish Kanna
    Oct 8 '18 at 5:13











  • Oh, thats nice. You can write your own Answer and accept it.

    – PRATAP
    Oct 8 '18 at 5:14






  • 1





    in clock override extension added this " %I:%m %p%n %d-%m-%Y"

    – Sathish Kanna
    Oct 8 '18 at 5:15











  • i tried your code. its nice. but alignment issues are there. its not perfectly in the center to each line.

    – PRATAP
    Oct 8 '18 at 5:18



















  • the second image you got it from other pc or your pc?

    – PRATAP
    Oct 8 '18 at 4:39











  • just edited.. but found a solution now to achieve that

    – Sathish Kanna
    Oct 8 '18 at 5:13











  • Oh, thats nice. You can write your own Answer and accept it.

    – PRATAP
    Oct 8 '18 at 5:14






  • 1





    in clock override extension added this " %I:%m %p%n %d-%m-%Y"

    – Sathish Kanna
    Oct 8 '18 at 5:15











  • i tried your code. its nice. but alignment issues are there. its not perfectly in the center to each line.

    – PRATAP
    Oct 8 '18 at 5:18

















the second image you got it from other pc or your pc?

– PRATAP
Oct 8 '18 at 4:39





the second image you got it from other pc or your pc?

– PRATAP
Oct 8 '18 at 4:39













just edited.. but found a solution now to achieve that

– Sathish Kanna
Oct 8 '18 at 5:13





just edited.. but found a solution now to achieve that

– Sathish Kanna
Oct 8 '18 at 5:13













Oh, thats nice. You can write your own Answer and accept it.

– PRATAP
Oct 8 '18 at 5:14





Oh, thats nice. You can write your own Answer and accept it.

– PRATAP
Oct 8 '18 at 5:14




1




1





in clock override extension added this " %I:%m %p%n %d-%m-%Y"

– Sathish Kanna
Oct 8 '18 at 5:15





in clock override extension added this " %I:%m %p%n %d-%m-%Y"

– Sathish Kanna
Oct 8 '18 at 5:15













i tried your code. its nice. but alignment issues are there. its not perfectly in the center to each line.

– PRATAP
Oct 8 '18 at 5:18





i tried your code. its nice. but alignment issues are there. its not perfectly in the center to each line.

– PRATAP
Oct 8 '18 at 5:18










2 Answers
2






active

oldest

votes


















4














Use clock override extension to achieve this.



After opening the extension's preferences, under "text to display instead of the clock" tab enter %I:%M %p%n %d/%m/%Y.



%n is responsible for next line and for the rest of formats check here.



screenshot






share|improve this answer


























  • Nice catch! Thought this was not possible.

    – vanadium
    Oct 8 '18 at 7:27



















1














this answer is only for "text alignment" purpose in continuation with the comments below the question and the already accepted answer.



when we enter next line by %n in the below field,
the lines are aligned to the left as shown in the below image.



enter image description here



to make this alignment to the center,
we need to open the gdm3.css file and edit the portion like below.



open the file by sudo -H gedit /etc/alternatives/gdm3.css
find the below section under "TOP BAR" line number around 743.



#panel.solid .panel-button:checked {
color: white; }
#panel.solid .system-status-icon,
#panel.solid .app-menu-icon > StIcon,
#panel.solid .popup-menu-arrow {
icon-shadow: none; }


and add the below lines under the line icon-shadow: none; }



#panel .clock-display {
text-align: center;
}


it looks like below after adding the required lines.



#panel.solid .panel-button:checked {
color: white; }
#panel.solid .system-status-icon,
#panel.solid .app-menu-icon > StIcon,
#panel.solid .popup-menu-arrow {
icon-shadow: none; }
#panel .clock-display {
text-align: center;
}


Save the file & Close.

Reboot to see the change.



enter image description here



enter image description here



Note: if you use different shell themes than the default shell theme, you may search for the text clock-display in the respected gnome-shell.css file. if found, edit there, if not found add the lines as shown above.






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1081793%2fhow-to-display-date-under-time-in-gnome%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4














    Use clock override extension to achieve this.



    After opening the extension's preferences, under "text to display instead of the clock" tab enter %I:%M %p%n %d/%m/%Y.



    %n is responsible for next line and for the rest of formats check here.



    screenshot






    share|improve this answer


























    • Nice catch! Thought this was not possible.

      – vanadium
      Oct 8 '18 at 7:27
















    4














    Use clock override extension to achieve this.



    After opening the extension's preferences, under "text to display instead of the clock" tab enter %I:%M %p%n %d/%m/%Y.



    %n is responsible for next line and for the rest of formats check here.



    screenshot






    share|improve this answer


























    • Nice catch! Thought this was not possible.

      – vanadium
      Oct 8 '18 at 7:27














    4












    4








    4







    Use clock override extension to achieve this.



    After opening the extension's preferences, under "text to display instead of the clock" tab enter %I:%M %p%n %d/%m/%Y.



    %n is responsible for next line and for the rest of formats check here.



    screenshot






    share|improve this answer















    Use clock override extension to achieve this.



    After opening the extension's preferences, under "text to display instead of the clock" tab enter %I:%M %p%n %d/%m/%Y.



    %n is responsible for next line and for the rest of formats check here.



    screenshot







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Oct 9 '18 at 16:55

























    answered Oct 8 '18 at 5:49









    Sathish KannaSathish Kanna

    988




    988













    • Nice catch! Thought this was not possible.

      – vanadium
      Oct 8 '18 at 7:27



















    • Nice catch! Thought this was not possible.

      – vanadium
      Oct 8 '18 at 7:27

















    Nice catch! Thought this was not possible.

    – vanadium
    Oct 8 '18 at 7:27





    Nice catch! Thought this was not possible.

    – vanadium
    Oct 8 '18 at 7:27













    1














    this answer is only for "text alignment" purpose in continuation with the comments below the question and the already accepted answer.



    when we enter next line by %n in the below field,
    the lines are aligned to the left as shown in the below image.



    enter image description here



    to make this alignment to the center,
    we need to open the gdm3.css file and edit the portion like below.



    open the file by sudo -H gedit /etc/alternatives/gdm3.css
    find the below section under "TOP BAR" line number around 743.



    #panel.solid .panel-button:checked {
    color: white; }
    #panel.solid .system-status-icon,
    #panel.solid .app-menu-icon > StIcon,
    #panel.solid .popup-menu-arrow {
    icon-shadow: none; }


    and add the below lines under the line icon-shadow: none; }



    #panel .clock-display {
    text-align: center;
    }


    it looks like below after adding the required lines.



    #panel.solid .panel-button:checked {
    color: white; }
    #panel.solid .system-status-icon,
    #panel.solid .app-menu-icon > StIcon,
    #panel.solid .popup-menu-arrow {
    icon-shadow: none; }
    #panel .clock-display {
    text-align: center;
    }


    Save the file & Close.

    Reboot to see the change.



    enter image description here



    enter image description here



    Note: if you use different shell themes than the default shell theme, you may search for the text clock-display in the respected gnome-shell.css file. if found, edit there, if not found add the lines as shown above.






    share|improve this answer






























      1














      this answer is only for "text alignment" purpose in continuation with the comments below the question and the already accepted answer.



      when we enter next line by %n in the below field,
      the lines are aligned to the left as shown in the below image.



      enter image description here



      to make this alignment to the center,
      we need to open the gdm3.css file and edit the portion like below.



      open the file by sudo -H gedit /etc/alternatives/gdm3.css
      find the below section under "TOP BAR" line number around 743.



      #panel.solid .panel-button:checked {
      color: white; }
      #panel.solid .system-status-icon,
      #panel.solid .app-menu-icon > StIcon,
      #panel.solid .popup-menu-arrow {
      icon-shadow: none; }


      and add the below lines under the line icon-shadow: none; }



      #panel .clock-display {
      text-align: center;
      }


      it looks like below after adding the required lines.



      #panel.solid .panel-button:checked {
      color: white; }
      #panel.solid .system-status-icon,
      #panel.solid .app-menu-icon > StIcon,
      #panel.solid .popup-menu-arrow {
      icon-shadow: none; }
      #panel .clock-display {
      text-align: center;
      }


      Save the file & Close.

      Reboot to see the change.



      enter image description here



      enter image description here



      Note: if you use different shell themes than the default shell theme, you may search for the text clock-display in the respected gnome-shell.css file. if found, edit there, if not found add the lines as shown above.






      share|improve this answer




























        1












        1








        1







        this answer is only for "text alignment" purpose in continuation with the comments below the question and the already accepted answer.



        when we enter next line by %n in the below field,
        the lines are aligned to the left as shown in the below image.



        enter image description here



        to make this alignment to the center,
        we need to open the gdm3.css file and edit the portion like below.



        open the file by sudo -H gedit /etc/alternatives/gdm3.css
        find the below section under "TOP BAR" line number around 743.



        #panel.solid .panel-button:checked {
        color: white; }
        #panel.solid .system-status-icon,
        #panel.solid .app-menu-icon > StIcon,
        #panel.solid .popup-menu-arrow {
        icon-shadow: none; }


        and add the below lines under the line icon-shadow: none; }



        #panel .clock-display {
        text-align: center;
        }


        it looks like below after adding the required lines.



        #panel.solid .panel-button:checked {
        color: white; }
        #panel.solid .system-status-icon,
        #panel.solid .app-menu-icon > StIcon,
        #panel.solid .popup-menu-arrow {
        icon-shadow: none; }
        #panel .clock-display {
        text-align: center;
        }


        Save the file & Close.

        Reboot to see the change.



        enter image description here



        enter image description here



        Note: if you use different shell themes than the default shell theme, you may search for the text clock-display in the respected gnome-shell.css file. if found, edit there, if not found add the lines as shown above.






        share|improve this answer















        this answer is only for "text alignment" purpose in continuation with the comments below the question and the already accepted answer.



        when we enter next line by %n in the below field,
        the lines are aligned to the left as shown in the below image.



        enter image description here



        to make this alignment to the center,
        we need to open the gdm3.css file and edit the portion like below.



        open the file by sudo -H gedit /etc/alternatives/gdm3.css
        find the below section under "TOP BAR" line number around 743.



        #panel.solid .panel-button:checked {
        color: white; }
        #panel.solid .system-status-icon,
        #panel.solid .app-menu-icon > StIcon,
        #panel.solid .popup-menu-arrow {
        icon-shadow: none; }


        and add the below lines under the line icon-shadow: none; }



        #panel .clock-display {
        text-align: center;
        }


        it looks like below after adding the required lines.



        #panel.solid .panel-button:checked {
        color: white; }
        #panel.solid .system-status-icon,
        #panel.solid .app-menu-icon > StIcon,
        #panel.solid .popup-menu-arrow {
        icon-shadow: none; }
        #panel .clock-display {
        text-align: center;
        }


        Save the file & Close.

        Reboot to see the change.



        enter image description here



        enter image description here



        Note: if you use different shell themes than the default shell theme, you may search for the text clock-display in the respected gnome-shell.css file. if found, edit there, if not found add the lines as shown above.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 2 at 16:02

























        answered Oct 9 '18 at 18:22









        PRATAPPRATAP

        3,2082829




        3,2082829






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1081793%2fhow-to-display-date-under-time-in-gnome%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Human spaceflight

            Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

            張江高科駅