Date showing up as NaN in IE?
<p>I know this has been covered a bit online, but I'm still not too sure how to modify this particular piece of code unfortunately: </p>

<pre><code>timeCreated: function(dateString) {     
    var date = new Date(dateString);
    var monthNames = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ];

    var hh = date.getHours();
    var m = date.getMinutes();
    var dd = "AM";  
    var h = hh;

    if (h &gt;= 12) {
        h = hh-12;
        dd = "PM";
    }
    if (h == 0) {
        h = 12;
    }

    return h + ':' + date.getMinutes().toString() + ' ' + dd + ' ' + monthNames[date.getMonth()] + ', ' + date.getDate().toString() + ', ' +  date.getFullYear().toString();


}
</code></pre>

<p>The dateString is outputting as <code>Tue Nov 06 23:29:33 +0000 2012</code>.</p>
