title: Difference in time between two dates in javascript?
body: <p>I am trying to make a countdown clock until the inauguration on January 20, 2017 at approximately 12:00pm using <a href="http://flipclockjs.com" rel="nofollow noreferrer">flipclock.js</a></p>
  
  <p>How do I calculate the difference (in seconds) between the current time and that date/time?</p>
  
  <p>I currently have: </p>
  
  <pre><code>var inauguration = new Date("January 20, 2017 12:00:00");
  var now = Date.now();
  var diff = inauguration - now;
  var clock = $('#clock').FlipClock(diff, {
      countdown: true,
      clockFace: "DailyCounter"
  });
  </code></pre>
  
  <p>Got it working: </p>
  
  <pre><code>    var inauguration = new Date(2017, 00, 20, 12, 0, 0, 0);
      var now = Date.now();
      var diff = inauguration.getTime() - now;
      diff = diff / 1000;
      var clock = $('#clock').FlipClock(diff, {
          countdown: true,
          clockFace: "DailyCounter"
      });
  </code></pre>