title: How to convert milliseconds to date and time?
body: <p>I know this question has been asked and answered many times, but I could not convert a given milliseconds to date and time.</p>
  
  <p>I have the following code:</p>
  
  <pre><code>var date = '1475235770601';
  var d = new Date(date);
  var ds = d.toLocaleString();
  alert(ds);
  console.log(ds);
  </code></pre>
  
  <p>When I run this I see <strong>Invalid Date</strong> in console as well as in alert.</p>
  
  <p>But when I paste the milliseconds <a href="https://currentmillis.com/" rel="noreferrer">here</a>, it converts fine in the format in local date and time as <code>Fri Sep 30 2016 17:12:50</code>. </p>
  
  <p>Actually I want to convert in in the format <code>09/30/16 17:12:50</code>.</p>