title: how to compare two time variables in jquery without date
body: <p>this is my jquery code.#StartTime and #EndTime is input form tag.starttime and entime contain time values only,not date value.then how to compare this two time values in jquery.
  example:starttimeval=8:00 AM endtimeval=9:00 PM (not date value inside the variable only time)</p>
  
  <pre><code>   $(function() {
      $('#StartTime').datetimepicker({
          datepicker : false,
          format : 'g:i A'
      });
      $('#EndTime').datetimepicker({
          datepicker : false,
          format : 'g:i A'
  
      });
               var starttime=  $("#StartTime").val();
              var endtime= $("#EndTime").val();
    });
  </code></pre>
  
  <p>this is my form image.it's show time values.<img src="https://i.stack.imgur.com/1AgQk.jpg" alt="enter image description here"></p>