MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    How to Set Date Format

    Scheduled Pinned Locked Moved Troubleshooting
    4 Posts 2 Posters 4.0k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      nobita
      last edited by

      Because display date is " day, date month year" I don’t like comma Sign (,) in this format
      I would like to know how to remove comma sign and how to change other date format
      Thanks for your help and kinds

      1 Reply Last reply Reply Quote 0
      • brobergB Offline
        broberg Project Sponsor
        last edited by broberg

        Hmm, did the clock module change when upgraded to 2.1.0?

        anyhow, change it to this in clock.js

        		if(this.config.showDate){
        			dateWrapper.innerHTML = now.format("DD/MM YYYY");
        }
        
        

        here is the formatting explained :
        http://momentjs.com/docs/#/parsing/string-format/

        1 Reply Last reply Reply Quote 0
        • N Offline
          nobita
          last edited by

          default module as picture (example)
          0_1483977916065_1479296936852-img_4554.jpg

          brobergB 1 Reply Last reply Reply Quote 0
          • brobergB Offline
            broberg Project Sponsor @nobita
            last edited by

            @nobita

            I updated my mirror to 2.1.0 and the code had changed slightly, but the format I posted above will change it back to
            “09/01 2017”

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy