Hi, I am trying to use the CompareValidator to make sure that dates from a textbox are entered in the format dd/MM/yyyy (I am in the UK) and my globalization culture is in en-GB. I tried this:
*
but the above code accepts dd/MM/yy dates which when I then
try to parse using DateTime.Parse causes a string not recognized as a valid datetime error. How do I add to/change the code above so that it will only accept dates in the form dd/mm/yyyy ? I am really struggling with this. Should I use a regular expression
validator and if so what would I put in the expression box John
jongog
Member
470 Points
94 Posts
CompareValidator Date confusion??
Dec 30, 2004 12:11 PM|LINK