$("#EndDate").change(function () {
    var startDate = document.getElementById("StartDate").value;
    var endDate = document.getElementById("EndDate").value;
    if ((Date.parse(endDate) <= Date.parse(startDate))) {
        alert("End date should be greater than Start date");
        document.getElementById("EndDate").value = "";
    }
});
If I used this logic, It doesn't work when I pick the date from the datepicker, If I wrote the date manually in the textbox this logic is working. Can any one have a fix for this.
 
     
    