I used another answer to solve my problem.
jQuery.validator.addMethod("greaterThan", function(value, element, params) {
return new Date(value) > new Date($(params).val());
}, 'Must be greater than {0}.');
However, my date field is a textbox and formatted like dd-mm-yyyy
. How do I change this code so that the validation works?