When I send a date through JSON from Java to Javascript, it sends something like this:
var ds = "11:07:47 13/01/2011";
Javascript fails to parse this string into date
var d = new Date(ds);
Any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need some JS that parse the String and return the year, month, day, minute,hour, second in strings:
and then instantiate the Date constructor: