title: Setting a set date with javascript
body: <p>Using a countdown plugin but I think I'm setting the date and time wrong.</p>
  
  <p>Code:</p>
  
  <pre><code>var clock;
  
  $(document).ready(function() {
      // Grab the current date
      var currentDate = new Date();
      // Set some date in the future. In this case, it's always Jan 1
      var futureDate  = new Date(2016,10,27, 10,00,00);
      // Calculate the difference in seconds between the future and current date
      var diff = futureDate.getTime() / 1000 - currentDate.getTime() / 1000;
      // Instantiate a coutdown FlipClock
      clock = $('.clock').FlipClock(diff, {
          clockFace: 'DailyCounter',
          countdown: true
      });
  });
  </code></pre>
  
  <p>I'm attempting this:</p>
  
  <pre><code>var futureDate = new Date(2016,10,27, 10,00,00);
  </code></pre>
  
  <p>Which is 27th October 2016 at 10am</p>
  
  <p>Coding up 52 days though so I must be doing something wrong</p>