I need to format a JavaScript date. I am using the jQuery Weekcalendar plugin and it kind of provides its own date format.
Input is:
Thu Jan 10 2013 11:15:00 GMT+0100 (CET)
Output should be:
2013-10-01 11:15:00
Can you help me to solve this?
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.
moment.js helps a lot when dealing with time and date in JavaScript
Update:
To use moment.js with your existing date object you need to create a wrapper