Click here to Skip to main content
15,900,530 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
var dateString;

in datestring variable i m getting "03-May-2012"
i have to convert into 03/05/2012
How can i do that in javascript..
Posted

1 solution

You can use Date.parse() and then .getDate(), .getMonth(), .getFullYear(). See W3Schools[^] for details.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900