View Full Version : datetime formate issurs

4 Jun 2009, 7:09 PM
My timezone is BeiJing GMT(+8) .

When I read a dateset to xml from the database , the datetime string likes this :


return date = Date.parseDate('2009-02-16T09:21:49.7271.4903404', 'Y-m-d H:i:s');

result : null
return date = value.dateFormat('Y-m-d H:i:s'), '2009-02-16T09:21:49.7271.4903404', 'Y-m-d H:i:s');

return :NaN NaN ...

How to get the right datetime form localization ?

Can anybody help me ?

thanks .:-|

4 Jun 2009, 9:17 PM
Your format string does not match the format does it?

What is that ".7271.4903404" bit? Looks like a non-standard date format.

You can plug in custom parse/format functions in 3.0: http://extjs.com/deploy/ext-3.0-rc2/docs/?class=Date&member=parseFunctions