• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

time stamp question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • time stamp question

    I have a file on our iseries where the time stamp is 00:00:00 when i display it on a grid (using the formatting option: 231030 = 11:10PM) it displays to the user as 12:00AM and they think its the actual time

  • #2
    Screen Shot 2022-05-19 at 11.56.44 AM.png If your data is coming back as XX:XX:XX you should choose the following formatter:

    Comment


    • #3
      i changed it and it still does the same thing

      Comment


      • #4
        What time would you expect 00:00:00 to show?

        Comment


        • #5
          hello, i tried changing this to a custom script but when there is a time it is also coming back blank

          if (v === '00:00:00')
          return ' ';
          else
          return Ext.Date.format(v,'h:i:s A');

          Comment


          • #6
            Ext.Data.format first parameter needs to be a js date so you could do something like
            Code:
            Ext.Date.format(Ext.Date.parse(v, 'H:i:s'),'h:i:s A');

            Comment


            • #7
              thanks it worked perfectly!

              Comment

              Working...
              X