title: How to convert a Timestamp into MySQL DateTime in JavaScript?
body: <p>I have a timestamp format which is just like below which is an <code>int</code>.</p>
  <pre><code>1631514003973
  </code></pre>
  <p>I am passing this value to an API which is built with Node.JS. How can I convert this into <code>Mysql DateTime</code> format?</p>
  <p>I checked <a href="https://stackoverflow.com/a/11150727/1379286">this</a> answer but it is about getting the current date and not converting a timestamp. I am coming from a Java background so this is bit confusing for me.</p>