By using JavaScript How we can Validate Fromdate And Todate?
Iam Using 2 textboxes,2textboxes are assigned with AjaxCalender.....How can i validate To date should be greater than fromdate?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

suraj ghosi30 reputationPosted Apr 28, 2015, 9:39 PM EDT
var fromdate= new Date($('#').val()); var todate= new Date($('#').val()); if(fromdate > todate> { alert("To date should be greater then from date"); return false; } return true;