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

[SOLVED] Render Date-Time Stamp in Grid

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

  • [SOLVED] Render Date-Time Stamp in Grid

    A Date-Time Stamp from AS400 comes in as Full Year-Month-Day-Hour.Minute.Seconds.Fraction Second.
    Example '2012-05-07-15.55.14.123000'

    How to display in (MVC) grid as example: 05 / 07 / 2012 15:55:14.123000

  • #2
    On your grid column, you can add a renderer like this:

    Code:
        header : 'Timestamp',
        dataIndex : 'MYFIELD',
        renderer : function(v){
            return Ext.util.Format.date(Ext.Date.parse(v,'Y-m-d-G.i.s.u'),'m/d/Y g:i:s.u');
        }

    Comment


    • #3
      That works

      Thanks

      Comment

      Working...
      X