• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.4k 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 Jan 16, 2020, 3:26 PM

    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 Jan 16, 2020, 3:35 PM Reply Quote 0
    • S Away
      sdetweil @MikeSeveno
      last edited by Jan 16, 2020, 3:35 PM

      @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 Jan 16, 2020, 8:09 PM Reply Quote 0
      • M Offline
        MikeSeveno @sdetweil
        last edited by Jan 16, 2020, 8:09 PM

        @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 Jan 16, 2020, 11:55 PM Reply Quote 0
        • S Away
          sdetweil @MikeSeveno
          last edited by Jan 16, 2020, 11:55 PM

          @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 Jan 17, 2020, 9:23 AM

            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
            1 / 1
            • First post
              1/5
              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