title: Compare two time values using jQuery's validate
body: <p>I have two selects, one that is a time from and the other is a time to.  These values are split by fifteen minute integrals. I take those values and convert them using PHP's strtotime. I would like to compare these values to make sure that the time to is not lower than the time from or that the time from is not higher than the time to using jQuery's validate. </p>
  
  <p>Thanks.
  Here is my PHP:</p>
  
  <pre><code>$start = strtotime('12:00 AM');
  $end = strtotime('12:00 PM');
  
  echo '&lt;select name="TimeFrom" id="TimeFrom"  class="timeSelectFrom"&gt;';
  for ($i = $start; $i &lt;= $end; $i += 900)
  {
      echo '&lt;option&gt;' . date('g:i A', $i) . '&lt;/option&gt;';
  }
  echo '&lt;option&gt;Closed&lt;/option&gt;';
  
  $start = strtotime('12:00 AM');
  $end = strtotime('12:00 PM');
  echo '&lt;select name="TimeTo" id="TimeTo" class="timeSelectTo"&gt;';
  for ($i = $start; $i &lt;= $end; $i += 900)
  {
      echo '&lt;option&gt;' . date('g:i A', $i) . '&lt;/option&gt;';
  }
  echo '&lt;option&gt;Closed&lt;/option&gt;';
  echo '&lt;/select&gt;';
  </code></pre>