title: Validation for End Date should be greater or equal to Start Date in asp.net
body: <p>I'm using this code to validate two date but the validation is not working when I enter the same or after the Start Date</p>
  
  <pre><code>        &lt;asp:CompareValidator ID="dateCompareValidator" runat="server" 
          ControlToValidate="EndDate"
          ControlToCompare="StartDate" 
          Operator="GreaterThanEqual" Type="Date"
          ErrorMessage="The second date must be after the first one.&lt;br /&gt;&lt;br /&gt;"&gt;
          &lt;/asp:CompareValidator&gt;
  </code></pre>
  
  <p>Do i need to use the hard code ?</p>