I have this code:
var Date = "Feb 17, 2012";
How can I convert it to
Date = "17/02/2012"
using jQuery?
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 can use
Date()constructor to parse your date :then you have to build up your required format as follows, in this case
DD/MM/YYYY:Working example : http://jsfiddle.net/bd3sa/2/
Docs on Date object here