I have one date in string format "dd/MM/yyyy hh:mm tt"
when I try to parse, the result is NaN
var test = Date.parse("15/2/2015 8:20 PM");
undefined
test
NaN
I have one date in string format "dd/MM/yyyy hh:mm tt"
when I try to parse, the result is NaN
var test = Date.parse("15/2/2015 8:20 PM");
undefined
test
NaN
Date expects US dates, so 2/15/2015. You can use a library like moment.js (http://momentjs.com/) to help you parsing international dates. JS does not allow this natively :(