Javascript JSON-Datumsanalyse in IE7 / IE8 gibt NaN zurück

Ich analysiere ein Datum aus einem JSON-Ereignisfeed, aber das Datum zeigt "NaN" in IE7 / 8:

// Variable from JSON feed (using JQuery's $.getJSON)
var start_time = '2012-06-24T17:00:00-07:00';

// How I'm currently extracting the Month & Day
var d = new Date(start_time);
var month = d.getMonth();
var day = d.getDate();

document.write(month+'/'+day);// "6/24" in most browsers, "Nan/Nan" in IE7/8

Was mache ich falsch? Vielen Dank!

Antworten auf die Frage(5)

Ihre Antwort auf die Frage