date = new Date('2013-03-10T02:00:00Z'); date.getFullYear()+'-' + (date.getMonth()+1) + '-'+date.getDate();//prints expected format.