Stumped on JS Epoch Convertion
<p>In epoch
<strong>1265997351408</strong>
is
<strong>Fri Feb 12 2010 12:55:51 GMT-0500 (EST)</strong></p>

<p>I am trying to write it as:
<strong>February, 12 2010</strong></p>

<p>But I am getting: <strong>November, 10 42087</strong></p>

<p>What am I doing wrong? </p>

<pre><code>function makeHumanDate(epoch) {
   var theDate = epoch * 1000
   var months = new Array(13);
   months[0]  = "January";
   months[1]  = "February";
   months[2]  = "March";
   months[3]  = "April";
   months[4]  = "May";
   months[5]  = "June";
   months[6]  = "July";
   months[7]  = "August";
   months[8]  = "September";
   months[9]  = "October";
   months[10] = "November";
   months[11] = "December";
   var d           = new Date(theDate);
   var monthnumber = d.getUTCMonth();
   var monthname   = months[monthnumber];
   var monthday    = d.getUTCDate();
   var year        = d.getFullYear();
   if(year &lt; 2000) { year = year + 1900; }
   var dateString = monthname +
                    ', ' +
                    monthday +
                    ' ' +
                    year;
   // Goal is: February, 12 2010
   return dateString;
}
</code></pre>

<p>I know its something dumb but I've been stuck for a while.  Please Help.</p>

<p>Thanks!</p>
