title: Live Clock Moment.js
body: <p>I'm trying to display a live clock using <a href="https://momentjs.com/" rel="nofollow noreferrer">moment.js</a> , I did.</p>
  <pre><code>window.setTimeout(function () {
      $('#clock').html(moment().format('ddd M/d/y H:mm:ss'))
  }, 1000);
  </code></pre>
  <h1>Today is 3/15</h1>
  <p>I kept getting the wrong date, and the time never refresh.</p>
  <p><a href="https://i.stack.imgur.com/vd75g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vd75g.png" alt="enter image description here" /></a></p>
  <p>How do I make it work correctly ?</p>