howto create a new Date() in Javascript from a non-standard date format
Posted
by Michel
on Stack Overflow
See other posts from Stack Overflow
or by Michel
Published on 2010-05-31T17:39:14Z
Indexed on
2010/05/31
17:43 UTC
Read the original article
Hit count: 153
JavaScript
hi,
i have a date in this format : dd.mm.yyyy
when i instantiate a javascript date with it, it gives me a NaN
in c# i can specify a dateformat, to say: here you have my string, it's in this format, please make a Datetime of it.
is this possible in javascript too, and if not, is there an easy way?
i would prefer not to use a substring for day, substring for month etc. because my method must also be capable of german, italian, english etc dates.
© Stack Overflow or respective owner