title: Convert date to timestamp for storing into firebase firestore in javascript
body: <p>I'm currently using <code>Math.floor(Date.now() / 1000)</code> to get the correct timestamp format to add into a document in Firebase, however, the timestamp gets inserted as a number, and not as a timestamp.</p>
  
  <p><a href="https://i.stack.imgur.com/pE1ph.png" rel="noreferrer"><img src="https://i.stack.imgur.com/pE1ph.png" alt="number"></a></p>
  
  <p>I would like to have it inserted as shown below (as a timestamp, not as a number).</p>
  
  <p><a href="https://i.stack.imgur.com/0JeaX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0JeaX.png" alt="enter image description here"></a></p>
  
  <p>Is this possible?</p>