My calendar date is in the format "Wed Jun 05 2013 00:00:00 GMT+0100 (CET)", but I need it to be in the yyyy-mm-dd
format.
Here’s what I’ve tried:
var year = mydate.getFullYear();
var month = mydate.getMonth();
var day = mydate.getDay();
Unfortunately, while I was able to extract the year and month, I am unable to get the day.