What is the difference between
new Date(2013,0,1)
and
Date.parse("2013-1-1")
that breaks http://api.jqueryui.com/datepicker/#method-setDate
Here is jsfiddle http://jsfiddle.net/tawVx/4/
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.
Date.parse() returns the number of milliseconds elapsed since January 1st, 1970, 00:00:00 UTC, not a
Dateobject.setDate() takes either a
Dateobject or a string, not a number of milliseconds elapsed since the epoch.The following code would work: