• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    simplest inline datetime format

    Mango Automation general Discussion
    2
    3
    1.2k
    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.
    • E
      etantonio
      last edited by

      Hy,
      maybe a stupid question,
      I've "TRK_9_2_automa_state.time" showing timestamp,

      <md-grid-tile class="gray" >
        <h5>{{TRK_9_2_automa_state.time}}</h5>
      </md-grid-tile>    
      

      there's a simple inline function to show a readable datetime like
      2019/04/05 15:58 instead of the numeric timestamp 1554402536000 ?

      Thanks,
      Antonio

      1 Reply Last reply Reply Quote 0
      • E
        etantonio
        last edited by

        Just a little bit of angularJs

        <md-grid-tile class="gray" >
          <h5>{{TRK_9_1_automa_state.time | date:'yyyy-MM-dd  HH:mm:ss'}}</h5>
        </md-grid-tile>
        
        1 Reply Last reply Reply Quote 0
        • Jared WiltshireJ
          Jared Wiltshire
          last edited by

          @etantonio This is covered pretty extensively in the examples and API docs built into Mango. I would suggest using the Mango maMoment filter instead of the built in AngularJS date filter as you can specify a format string like {{myPoint.time | maMoment:'format':'ll LTS'}} to format the data in the user's selected locale.

          Developer at Radix IoT

          1 Reply Last reply Reply Quote 0
          • First post
            Last post