MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED How to display start and end times/dates of events in calendar

    Troubleshooting
    2
    5
    1002
    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.
    • M
      MikeSeveno last edited by

      Hi,
      Do you know if it is possible to display both the start and end time/date for entries with the default calendar module.
      The config I’m using is

      	config: {
      					timeFormat: 'absolute',
      					showEnd: true,
      					urgency: 0,
      					getRelative: 0,
      					fetchInterval: 2 * 60000,
      
      			calendars: [
      				{
      					symbol: "calendar-check",
      

      When showEnd is true only end times are displayed. When showEnd is false no times are displayed.

      Thanks

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

        @MikeSeveno i believe the default calendar module will only display one date/time, start or end

        Sam

        Create a working config
        How to add modules

        M 1 Reply Last reply Reply Quote 0
        • M
          MikeSeveno @sdetweil last edited by

          @sdetweil Thanks very much Sam. I don’t seem to be able to ever get the start time to display.

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

            @MikeSeveno from here

            https://momentjs.com/docs/#/parsing/string-format/

            dateFormat: "YYYY-MM-DDTHH:mm:ss"
            

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • M
              MikeSeveno last edited by

              Thanks that was really useful. My revised config is:
              (start and end date/time, one of many possible formats)

              		config: {
              					dateFormat: "llll",
              

              // dateEndFormat: “YYYY-MMDDTHH🇲🇲ss”,
              dateEndFormat: “llll”,
              timeFormat: ‘absolute’,
              showEnd: true,
              urgency: 0,
              getRelative: 0,
              fetchInterval: 2 * 60000,

              			calendars: [
              				{
              

              I found this site a bit easier to follow:
              https://devhints.io/moment

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy