If you really need plain English, why not convert the string to Date and call date.toLocaleString () or toUTCString () if you want GMT.
var time = new Date ('2010-01-13T18: 31: 16Z'). toLocaleString ();
If you want to support browsers IE8 and older, you will need to translate the line:
(function(){ var D= new Date('2011-06-02T09:34:29+02:00'); if(!D || +D!==1307000069000){ Date.fromISO= function(s){ var day, tz, rx=/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*)?)([zZ]|([+\-])(\d\d):(\d\d))?$/, p= rx.exec(s) || []; if(p[1]){ day= p[1].split(/\D/); for(var i=0,L=day.length;i<L;i++){ day[i]=parseInt(day[i], 10) || 0; }; day[1]-= 1; day= new Date(Date.UTC.apply(Date, day)); if(!day.getDate()) return NaN; if(p[5]){ tz= (parseInt(p[5], 10)*60); if(p[6]) tz+= parseInt(p[6], 10); if(p[4]== '+') tz*= -1; if(tz) day.setUTCMinutes(day.getUTCMinutes()+ tz); } return day; } return NaN; }
var time = Date.fromISO ('2010-01-13T18: 31: 16Z'). toLocaleString ();
return value: (String) January 13, 2010 1:31:16
source share