var dt="29/05/2013"; //DD/MM/YYYY
I want to convert to yyyy/MM/dd format;
The approach I've used is:
var newdate=dt.getFullYear()+"/"+dt.getMonth()+"/"+dt.getDate();
Is there any simple approach to convert it with out using substring?
I don't want to use plugins by the way...