title: Date format in RangeValidator
body: <p>I am using RangeValidator to validate date enter in textbox and its working fine with default date format but now i want the date format in "dd/MM/yyy" but its generating excption with this date format. please provide me solution
  my code:</p>
  
  <p>in aspx page:</p>
  
  <pre><code>&lt;asp:TextBox ID="txtrequiredby" runat="server" &gt;&lt;/asp:TextBox &gt;
  &lt;cc1:CalendarExtender ID="txtrequiredby_CalendarExtender" Format="dd/MM/yyyy"
  runat="server" Enabled="True" TargetControlID="txtrequiredby" &gt;
  &lt;/cc1:CalendarExtender &gt;
  
   &lt;asp:RangeValidator ID="rvreqby" runat="server" ErrorMessage="Required By Date
  Greater Than or Equal to current date" ControlToValidate="txtrequiredby" 
   Display="Dynamic" Type="Date" &gt;&lt;/asp:RangeValidator &gt;
  </code></pre>
  
  <p>in codebehind:</p>
  
  <pre><code>rvreqby.MinimumValue = clsGeneral.FromSqlDate( DateTime.Now);
  rvreqby.MaximumValue = clsGeneral.FromSqlDate( DateTime.Now.AddYears(200));
  
  public static string  FromSqlDate(DateTime  date)
  {
     return date.ToString("dd/MM/yyyy");
  }
  </code></pre>