title: air-datepicker js : hour+2
body: <p>I try to set hours (+2h) to actual day and not for the others.</p>
  
  <p>Example:</p>
  
  <p>Today is October 18th, time: 10am.</p>
  
  <ul>
  <li>If I click (without changing the date) -> Time is 12pm.</li>
  <li>If I click and choose tomorrow (19th October) -> I choose any time.</li>
  </ul>
  
  <p>Today is October 19th, time: 08am.</p>
  
  <ul>
  <li>If I click (without changing the date) -> Time is 10am.</li>
  <li>If I click and choose tomorrow (20th October) -> I choose any time.</li>
  </ul>
  
  <p>PS : If possible, I want to disable the entry in the input (because we can change the time)</p>
  
  <p>Thx</p>
  
  <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>    var start = new Date()
   var hour = start.getHours()+2;
  
   
   $('#date').datepicker({
          language: 'en',
    timepicker: true,
    minHours: hour
   })</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/air-datepicker/2.2.3/js/datepicker.js"&gt;&lt;/script&gt;
  
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/air-datepicker/2.2.3/js/i18n/datepicker.en.js"&gt;&lt;/script&gt;
  &lt;link href="https://cdnjs.cloudflare.com/ajax/libs/air-datepicker/2.2.3/css/datepicker.css" rel="stylesheet"/&gt;
  
  
  &lt;input type='text' id="date" class="" /&gt;</code></pre>
  </div>
  </div>
  </p>