|
-
Oct 11th, 2002, 12:42 AM
#1
Thread Starter
Hyperactive Member
Date validation doesn't work!
Hi there!
I am using 'dd/MMM/yyyy' date format to display dates. I have two server textboxes namely 'txtfromDate' and 'txtToDate' which have values '12/Oct/2002' and '17/Oct/2002' respectively.
<asp:CompareValidator id="vDates" runat="server" ErrorMessage="Invalid date selection!" ControlToValidate="txtToDate" Type="Date" Operator="GreaterThan" ControlToCompare="txtFromDate"></asp:CompareValidator>
The above validation control always shows error messages irrespective of what value present in the date fields. Can you tell me where I went wrong?
PS: If I use the default date format[MM/dd/yyyy], its working like a charm. So Validator control don't know other formats?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|