PDA

View Full Version : Displaying future dates in chrome not working



srarnold
28 May 2012, 11:41 AM
I have a grid displayed with the Date/Time column, using the following render:
dateRenderer('d/m/Y g:i a'), now this displays all dates and times fine under IE and FireFox, but under Google Chrome it is displaying as NaN/NaN/0Nan 12:NaN pm,

Attached is screen shot from Chrome
35673
Now the same from FireFox, this is also the same in IE
35674
Is this a bug or is it just a simple Render issue, if so can some body let me know which format I should use.

Thanks

evant
28 May 2012, 1:42 PM
It's most likely a parsing issue, WebKit is a bit more strict if you're using new Date() and passing it a string.

What does your server data look like? Your model?

srarnold
29 May 2012, 7:16 AM
Thanks, you pointed me in the right direction, the problem was with the DateTime format coming from my web service, this has now been sorted.