amsul / pickadate.js

The mobile-friendly, responsive, and lightweight jQuery date & time input picker.
http://amsul.ca/pickadate.js
MIT License
7.7k stars 1.01k forks source link

I have two time pickers and unable to compare its values with each other. #1092

Open nikunjpatel3992 opened 6 years ago

nikunjpatel3992 commented 6 years ago

Like I have one time picker for start time and another for end time and I need to compare start time must be less than end time. Also dynamically by comparing some logic I need to disable some times. Below is my code :

  $('#txtEndTime').pickatime({
        "min": "9:30 AM",
        "max": "7:00 PM"
    });

    $('#txtStartTime').pickatime({
        "min": "9:00 AM",
        "max": "6:30 PM"        
    });