title: mvc4 data annotation compare two dates
body: <p>I have these two fields in my model:</p>
  
  <pre><code>[Required(ErrorMessage="The start date is required")]
  [Display(Name="Start Date")]
  [DisplayFormat(DataFormatString = "{0,d}")]
  public DateTime startDate { get; set; }
  
  [Required(ErrorMessage="The end date is required")]
  [Display(Name="End Date")]
  [DisplayFormat(DataFormatString = "{0,d}")]
  public DateTime endDate{ get; set; }
  </code></pre>
  
  <p>I require that <code>endDate</code> must be greater than <code>startDate</code>. I tried using <code>[Compare("startDate")]</code> but this only works for the equal operation.</p>
  
  <p>What should I use for the "greater than" operation?</p>