Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datetime Validation Expression
Message
 
 
To
01/08/2008 03:47:40
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Database:
MySQL
Miscellaneous
Thread ID:
01335753
Message ID:
01335811
Views:
16
>Hello,
>
>What is validation expression format for datetime dd/mm/yyy?
>
>TIA.

Is it for Regular Expressions? I use mm/dd/yy (yy) and that's our expression
ValidationExpression="(?:(?:(?:0?[13578]|1[02])(\/|-|\.)31)\1|(?:(?:0?[13-9]|1[0-2])(\/|-|\.)(?:29|30)\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:0?2(\/|-|\.)29\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:(?:0?[1-9])|(?:1[0-2]))(\/|-|\.)(?:0?[1-9]|1\d|2[0-8])\4(?:(?:1[6-9]|[2-9]\d)?\d{2})"
See also

http://www.regular-expressions.info/dates.html
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform