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.

    Calendar date format

    Scheduled Pinned Locked Moved Troubleshooting
    16 Posts 5 Posters 6.6k Views 5 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.
    • G Offline
      Gr1dL0ck
      last edited by

      evening all,

      I just need to change the format on my calendar for up coming events which is being displayed in US format MM/DD/YYYY

      I would like to change it to DD MMM

      {
      module: “calendar”,
      header: “AU Holidays”,
      position: “top_left”,
      config: {
      dateformat: “DD MMM”,
      calendars: [
      {
      symbol: “calendar-check”,
      url: “https://calendar.google.com…” }
      ]
      }
      },

      https://docs.magicmirror.builders/modules/calendar.html#configuration-options
      where does the ‘dateformat’ go?
      IS DD MMM a correct format?

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Gr1dL0ck
        last edited by

        @gr1dl0ck please reade the documentation

        https://docs.magicmirror.builders/modules/calendar.html#using-the-module

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        G 1 Reply Last reply Reply Quote -1
        • G Offline
          Gr1dL0ck @sdetweil
          last edited by

          @sdetweil

          i get it sam, you can paste the user guide and documents all day. i have read them but dont understand the format them hence my posts.

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @Gr1dL0ck
            last edited by

            @gr1dl0ck all the config parameters are case sensitive.

            so dateformat and dateFormat (from the doc) are not the same.

            and there is an example that shows where is goes.

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            G 1 Reply Last reply Reply Quote 0
            • G Offline
              Gr1dL0ck @sdetweil
              last edited by

              @sdetweil

              this is my current config code, i have tried placing it in both positions as shown (one at a time) still doesnt change anything on the calendar.

              I got the ‘L’ command from here https://momentjs.com/docs/#/parsing/string-format/

              DD MMM didnt work

              {
              module: “calendar”,
              header: “AU Holidays”,
              position: “top_left”,
              config: {
              dateFormat: “L”,
              calendars: [
              {
              symbol: “calendar-check”,
              url: “https://calendar.google.com……”
              dateFormat: “L”,
              },
              ]
              },
              },

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @Gr1dL0ck
                last edited by

                @gr1dl0ck because the option is described in the ‘Configuration Options’ section, it goes above the individual calendars

                but it also says ‘when using absolute formats’

                by default the calendar is showing relative formats…

                so u also need to set

                showTime:"absolute",
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                G 1 Reply Last reply Reply Quote 0
                • G Offline
                  Gr1dL0ck @sdetweil
                  last edited by Gr1dL0ck

                  @sdetweil

                  does the showtime: “absolute”, go out of the modules up where it has language, log level, timeformat, units?

                  i tried in there didnt make any difference

                  i put in down in the module in serval places didnt change, tried both “L” and “DD MMM” on the dateFormat.

                  {
                         module: “calendar”,
                         header: “AU Holidays”,
                         position: “top_left”,
                            config: {
                                    calendars: [
                                               {
                                               symbol: “calendar-check”,
                                               url: “https://calendar.google.com……”
                                               dateFormat: “L”,
                                                },
                                                ]
                                   },
                  },
                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @Gr1dL0ck
                    last edited by sdetweil

                    @gr1dl0ck come on. read the doc…

                    you are configuring a module, so any options would ONLY be inside a module config:{} block

                    and remember the system is case sensitive. every letter matters

                    the doc describes 2 areas of config,

                    calendars and NOT calendars

                    all the NOT calendar opitions go INSIDE MODULE CONFIG and BEFORE the CALENDARS list

                    all the calendar config, goes with each calendar entry

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    G 1 Reply Last reply Reply Quote -1
                    • G Offline
                      Gr1dL0ck @sdetweil
                      last edited by Gr1dL0ck

                      @sdetweil

                      not sure if this is what you mean, but still nothing changes, all dates are still MM/DD/YYYY

                      Showtime: “absolute”, no idea where this is mentioned in the document, unsure where it goes.

                      dateFormat - config option, in the configuration

                      // The config property is optional.
                      // If no config is set, an example calendar is shown.
                      // See ‘Configuration options’ for more information.

                      {
                             module: “calendar”,
                             header: “AU Holidays”,
                             position: “top_left”,
                                config: {
                                        showtime: "absolute",
                                       dateFormat: “DD MMM”,
                                        calendars: [
                                                   {
                                                   symbol: “calendar-check”,
                                                   url: “https://calendar.google.com……”
                                                    },
                                                    ]
                                       },
                      },
                      
                      

                      as for reading the document, I have ctrl+f ’ showtime’ , ‘Not calendar’ all these things you mention in each post, so unless we are reading different documents … I have zero idea where you are getting the information from

                      you can keep being condescending as much as you want, trying my best i have been doing this for around 7 days.

                      This thread could of been 3 posts long, describe the issue, post an answer with an explanation and a last reply of thankyou this helps alot.

                      S 1 Reply Last reply Reply Quote 1
                      • S Offline
                        sdetweil @Gr1dL0ck
                        last edited by sdetweil

                        @gr1dl0ck i will NOT give u the answer. cause u will be back for another.

                        my job as moderator here is to teach u and direct you to info.

                        the doc is the online readme referenced in the README.md in the calendar module folder
                        https://github.com/MichMich/MagicMirror/tree/master/modules/default/calendar

                        this is the same doc file name for everything

                        and sometimes i dont look.up the exact config term, cause i expect you to do.it

                        Screenshot_20210218-224008_Chrome.jpg

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        G P 2 Replies Last reply Reply Quote -3
                        • 1
                        • 2
                        • 1 / 2
                        • 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