title: Conversion of date into long format, How it works?
body: <p>I was trying to convert date object into long format (may be in milliseconds format) as we do in java.<br>
  So to fulfill my need, after some trial and error, I found below way which works for me:  </p>
  
  <pre><code>var date = new Date();  
  var longFormat = date*1;  // dont know what it does internally
  console.log(longFormat); // output was 1380625095292  
  </code></pre>
  
  <p>To verify, I reverse it using <code>new Date(longFormat);</code> and it gave me correct output. In short I was able to fulfill my need some how, but I am still blank what multiplication does internally ? When I tried to multiply current date with digit 2, it gave me some date of year 2057 !! does anyone know, what exactly happening ?</p>