title: Convert integer to Date in node.js
body: <p>I'm trying to convert a integer to a Date using node .js, and Date.</p>
  
  <p>I know that this is a very common question but all the solutions that have been posted before have failed to help me. </p>
  
  <p>I am getting the dates from a json file found at <a href="http://api.guardian.gg/chart/elo/4611686018432537994" rel="noreferrer">http://api.guardian.gg/chart/elo/4611686018432537994</a>,  </p>
  
  <p>Example date: 1461110400000</p>
  
  <p>What I've tried:</p>
  
  <pre><code>    var date = String(new Date(elodata.x));
  </code></pre>
  
  <p>and </p>
  
  <pre><code>    var date = String(new Date(parseInt(elodata.x)));
  </code></pre>
  
  <p>But I get invalid date as a result.</p>
  
  <p>I realise that this might not be doable because I don't know how guardian.gg handles this data. But you never know.</p>