Search code examples
c#asp.netrangevalidator

Server Error in '/webvalidators' Application


The value '12/31/2010' of the MaximumValue property of 'RangeValidator1' cannot be converted to type 'Date'

<asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TextBox6"
                        ErrorMessage="RangeValidator" MaximumValue="12/31/2010" MinimumValue="12/31/2000"
                        Type="Date" Width="152px"></asp:RangeValidator>​

Solution

  • Try formatting as "31-12-10" (Day-Month-Year)