AnsweredAssumed Answered

formatting a date/time field in dgrid

Question asked by mrogers83 on Feb 13, 2014
Latest reply on Feb 14, 2014 by evtguy
I am working with the dgrid and cannot for the life of me figure out how to format the date/time field that I have.  Right now it is coming in as a string of numbers.  I tried doing this:
window.grid = new (declare([Grid, Selection])) ({   bufferRows:Infinity,   columns: {     "id": "ID",     "vehicleId": "Vehicle ID",     "velocity": {"label": "Speed (MPH)", "formatter":dojoNum.format},     "timestamp": {"label": "Time Stamp", "formatter":dojo.date.locale.format}   } }, "grid");


But it still didn't work.  Is there a way to do this inside the formatter, or do I need to do it some other way?

Michelle

Outcomes