title: How to check date range in datetimepicker jquery?
body: <p>i have used datetimepicker at <a href="https://github.com/xdan/datetimepicker" rel="nofollow">https://github.com/xdan/datetimepicker</a>, It's so cool, and i want to check date range of this in a week (7 days), i try with </p>
  
  <pre><code>               if ($("#FromDate").val() + 7 &gt; $("#ToDate").val()) {
                     alert("Please choose a week");
                  }
  </code></pre>
  
  <p>Example some case:</p>
  
  <pre><code>Fromdate: 27/10/2016 Todate: 31/10/2016 : OK
  Fromdate: 27/10/2016 Todate: 2/11/2016 : OK
  Fromdate: 27/10/2016 Todate: 3/11/2016 : show alert
  </code></pre>
  
  <p>But seem it not working. </p>