i have in jquery:
var start = '2012-11-10 13:10:13';
Why this not working:
var date = new Date(start);
? How can i make it without external plugins?
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.
This is a bit more correct:
Quoting the
Date.parse(MDN) doc:Still, this format is NOT supported by IE8 (as mentioned here). Therefore I suggest at least considering possibility of using external libraries for processing dates – in particular, Moment.js.