Question: how to convert dd-mon-yy to mm/dd/yyyy in javascript?
Answer: How to convert date format dd-mmm-yy to yyyy-mm-dd in javascript. var day = arr[0] ; if (day < 10) day = "0" + day; // add '0' if date is less then 10.