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

  • 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


  • 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>

  • @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.