How to parse date in different languages.

Posted by xrx215 on Stack Overflow See other posts from Stack Overflow or by xrx215
Published on 2010-03-15T17:38:05Z Indexed on 2010/03/15 17:39 UTC
Read the original article Hit count: 181

Filed under:

Hi,

with browser language french i have a string which has date in the format v = 13/01/2010 10:54:00.

when i say Date.parse(v) i get the result as Date.parse(v) 1293897240000 Number

with browser language german i have a string which has date int he format v = 13.01.2010 10:54:00

when i say Date.parse(v) i get the result as Date.parse(v) NaN Number

can you please tell me how to parse date when it is in german language.

Thanks

© Stack Overflow or respective owner

Related posts about extjs