PDA

View Full Version : New Date at 1970-01-01 00:00 return undefined



Silmortes
20 Jul 2015, 4:57 AM
How prevent Ext.Date.parse("1970-01-01 00:00", "Y-m-d G:i") return undefined ???


thank

joel.watson
20 Jul 2015, 2:16 PM
How prevent Ext.Date.parse("1970-01-01 00:00", "Y-m-d G:i") return undefined ???

Hi--

You'll need to either remove the leading zero from the "hours" (since "G" is for 24-hour format without leading zeros), or change the format to replace the "G" with "H" in order to support the leading zero for the "hours".

I hope that helps!
Thanks
Joel

Silmortes
22 Jul 2015, 4:26 AM
thank ...

i need vacation i think ....I-|

joel.watson
22 Jul 2015, 4:31 AM
Sure thing, glad it was helpful!

Thanks
Joel