title: How do I validate that the end date is greater than start date?
body: <p>I used <a href="https://stackoverflow.com/questions/833997/end-date-greater-than-start-date-jquery-validation">another answer</a> to solve my problem.</p>
  
  <pre><code>jQuery.validator.addMethod("greaterThan", function(value, element, params) {
      return new Date(value) &gt; new Date($(params).val());
  }, 'Must be greater than {0}.');
  </code></pre>
  
  <p>However, my date field is a textbox and formatted like <code>dd-mm-yyyy</code>. How do I change this code so that the validation works?</p>