I have a date with the format "Wed Jun 05 2013 00:00:00 GMT+0100 (CET)", and I want to get it in the yyyy-mm-dd
format.
I tried this:
var year = mydate.getFullYear();
var month = mydate.getMonth();
var day = mydate.getDay();
I got the year and the month, but I can’t get the day.