title: ASP .NET MVC 3 Data Annotations GreaterThan LowerThan for DateTime and int
body: <p>I would like to know what is the easiest way to have a "Greater Than" &amp; "Lower Than" validation on a ASP.NET MVC 3 form?</p>
  
  <p>I use unobtrusive JavaScript for client validation.
  I have two DateTime properties (StartDate &amp; EndDate) and I need a validation to be sure that the EndDate is greater than the StartDate.
  I have another similar case with another form on which I have a MinValue (int) &amp; MaxValue (int).</p>
  
  <p>Does this type of validation exist by default? Or does someone know an article which explains how to implement it?</p>