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 display start and end times/dates of events in calendar

    Scheduled Pinned Locked Moved Solved Troubleshooting
    5 Posts 2 Posters 1.5k Views 2 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.
    • M Offline
      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 Offline
        sdetweil @MikeSeveno
        last edited by

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

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          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 Offline
            sdetweil @MikeSeveno
            last edited by

            @MikeSeveno from here

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

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

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • M Offline
              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:mm: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 Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy