String was not recognized as a valid DateTime.
when I try to sumbit a form with this
Expand|Select|Wrap|Line Numbers
- <asp:TextBox ID="tbDate" runat="server"></asp:TextBox>
- <cc1:CalendarExtender id="bdplPickupDate" runat="server" TargetControlID="tbDate" Format="MM-dd-yyyy" PopupButtonID="tbDate">
- </cc1:CalendarExtender>
- <asp:CompareValidator ID="cvDate"
- ControlToValidate="tbDate"
- Display="none"
- Text="Invalid Date!"
- Operator="DataTypeCheck"
- Type="Date"
- Runat="Server"
- ErrorMessage="You must provide a valid date!"
- ></asp:CompareValidator>
- <cc1:ValidatorCalloutExtender runat="server" ID="vceDate" TargetControlID="cvDate">
- </cc1:ValidatorCalloutExtender>
Basically I am just trying to check for a valid date.