title: Get current unix time in milliseconds in javascript
body: <p>Hi this is incredibly simple i cant believe im asking this.</p>
  
  <p>I have tried the following:</p>
  
  <pre><code>Moment.now()
  Date.now()
  new Date().valueOf()
  </code></pre>
  
  <p>And various other tricks found in other stack overflow questions</p>
  
  <p>They all give me the time in microseconds. </p>
  
  <p>e.g</p>
  
  <pre><code>1543409290654
  
  which is 09/10/50878 @ 10:57am (UTC)
  </code></pre>
  
  <p>Im aware i could divide by 1000 but surely there is an api in javascript to get the unix timestamp in milliseconds.</p>
  
  <p>Ive have seen this in chrome and react native</p>
  
  <p>EDIT:</p>
  
  <p>So i realise my stupidity i was putting the unix timestamp into a website that renders it as an ISO date but it was expecting seconds which is why i thought my dates were coming in as milliseconds</p>