title: Date appearing as number in JavaScript
body: <p>Hello I am very new to JavaScript and have a probably obviously noob question.</p>
  
  <p>When I write this:</p>
  
  <pre><code>&lt;script&gt;
      var curdate = new Date();
      document.write(curdate.setFullYear(1989, 07, 26));
  &lt;/script&gt;
  </code></pre>
  
  <p>I get the date shown as a number like : <code>620154050573</code> and not as a normal date display. I have tried converting it to a string first but same thing happens. </p>
  
  <p>Please explain.</p>