title: Datetime in javascript, is it a bug?
body: <p>Hello all javascript guru,</p>
  
  <p>I've came across this javascript code that struggled me abit to understand why it didn't work as expected. So thought i post it here seeking for your help.</p>
  
  <p>Basically the code is to convert a Date to milliseconds format and that milliseconds value then be converted back to Date object again but when comparing, they are NOT equal?</p>
  
  <pre><code>var currentTime = new Date();
  var currentTimeInMill = Date.parse(currentTime);
  var currentTime2 = new Date(currentTimeInMill);
  
  // debug in firefox
  console.log(currentTime);
  // Date {Thu Jul 07 2011 09:56:19 GMT+1000 (AUS Eastern Standard Time)}
  
  console.log(currentTime2);
  // Date {Thu Jul 07 2011 09:56:19 GMT+1000 (AUS Eastern Standard Time)}
  
  console.log(currentTime == currentTime2);
  // false
  </code></pre>
  
  <p>My question is why that 2 values currentTime and currentTime2 are not equal even their values "look" the same in Firefox console.log?</p>