title: Disable all dates after specific date in jQuery datetimepicker
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(function() {
    $("#datepicker").datepicker({
      maxDate: new Date()
    });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;link data-require="jqueryui@*" data-semver="1.10.0" rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.0/css/smoothness/jquery-ui-1.10.0.custom.min.css" /&gt;
  
  &lt;script data-require="jqueryui@*" data-semver="1.10.0" src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.0/jquery-ui.js"&gt;&lt;/script&gt;
  &lt;p&gt;Date: &lt;input type="text" id="datepicker" /&gt;&lt;/p&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I have a jquery datepicker where I want the max date to be Sep 29'2017. Right now, it's today's date. Any help would be appreciated.</p>
  
  <p>Thank you.</p>