PDA

View Full Version : JSON Ajax Request And Date Formatting



fernie
21 Oct 2010, 10:19 AM
I am making a simple AJAX request and on success updating a DataView with the resulting data. I am using a XTemplate for the layout. Everything is working OK, except for the date formatting. I tried using the inline formatters in the template, but it renders as NaN in the browser. In some other threads I read that I may need to convert the date from the json string to a Date object first. How would I go about this in the above scenario?