4 Replies Latest reply on Nov 17, 2016 11:18 AM by aanjan RSS
    ewertonm Creator

    Date/Time format on the Event Chart

    Hello All,

     

    I am struggling with a quite simple thing but I can't seem to figure out: I want to make the Event Chart Dynamic so user can select from some TimeFrames he wants to see the event.

     

    The way i am trying to do it is to Subtract the amount of minutes from the current time based on the selection.

     

    var result = dateAddMinutes(new Date(), -selectedTimeFrame);

     

    It works fine but my problem is that it seems that the event chart does not like the milliseconds after the seconds.

     

     

    Looking at the Widget properties it seems the when I try to paste the date with Milliseconds it does not recognize it, but when I remove the millis it does. I tried to create a string and rip the milliseconds piece off, but it did not work.

     

     

    Does anybody have a tip?

     

    Cheers

    Ewerton