I have a date like this Monday, January 9, 2010
I now want to convert it to
1/9/2010 mm/dd/yyyy
I tried to do this
var startDat
var d = new Date("Wed Mar 25 2015 05:30:00 GMT+0530 (India Standard Time)"); document.getElementById("demo").innerHTML = d.toLocaleDateString();