I have two times start time and end time. The code is running properly but when the start time is 10:55 AM and end time is 10:00 PM then it takes start time greater than end time . but it should not. How to resolve the issue.Thanks is advance.
 function checktime() {
    var start = document.getElementById("StartTime").value;//10:55AM
    var end = document.getElementById("EndTime").value;//10:00PM
        if (start > end) {
            alert("End time should exceed the start time");
        }         
        return false;
    }