title: Set a minimum time value if selected date is the current date
body: <p>I have two separate input fields of type date and type time. The user should not be able to select a <code>pickupDate</code> and <code>pickupTime</code> that has past (less than the current time).</p>
  
  <p>I am able to set the minimum date so that the user cannot select a past date, however am having trouble with doing the same with the minimum <code>pickupTime</code>. Currently what is it doing, is that if I select a day in advance e.g. 26/05/2019, and the current time is 3:30 PM I cannot select any time before this 2:30 PM, 1:30 PM etc. as the minimum is the current time (not taking into account that the date is in the future). How do I make it so that only if the <strong>current date</strong> is selected, then it will set the <code>pickupTime</code> to have a minimum value (being the current time)?</p>
  
  <p><strong>booking.html</strong></p>
  
  <pre><code>    &lt;div class="pure-control-group"&gt;
          &lt;label for="pickupDate"&gt;Pickup Date:&lt;/label&gt;
          &lt;input id="pickupDate" type="date" name="pickupDate" min="d" required&gt;
      &lt;/div&gt;
      &lt;div class="pure-control-group"&gt;
          &lt;label for="pickupTime"&gt;Pickup Time:&lt;/label&gt;
          &lt;input id="pickupTime" type="time" name="pickupTime" required&gt;
      &lt;/div&gt;
  
  
      &lt;script&gt;
          var d = new Date().toString("yyyy-MM-dd");
          var time = new Date().toString("HH:mm"); //changed from HH:mm
          document.getElementById("pickupDate").value = d;        
          document.getElementById("pickupTime").value = time;     
          pickupDate.min = d;
  
          if(pickupDate.value == d) {
              pickupTime.min = time;
          }
      &lt;/script&gt;
  </code></pre>
  
  <p>I expect if the current date is 25/05/2019 2:00PM :<br>
  - If the selected <code>pickupDate</code> is 25/05/2019, the <code>pickupTime</code> cannot be 1:00PM<br>
  - If the selected <code>pickupDate</code> is 26/05/2019, the <code>pickupTime</code> can be 1:00PM</p>
  
  <p><strong>My table structure is:</strong></p>
  
  <pre><code>referenceNo VARCHAR(100)    
  pickupDate  DATE
  pickupTime  TIME
  </code></pre>