Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am Using Date Format dd/MM/yyyy. For this I require Validation Expression.

Please provide me.

Pankaj
+919871780998
Posted
Updated 14-Aug-10 4:31am
v2

1 solution

The "Regular Expression" you need is :

C++
^(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d$


see http://www.regular-expressions.info/regexbuddy/dateddmmyyyy.html[^]


-----------------------
Regards

H.Maadani
 
Share this answer
 
Comments
LebneizTech 16-Aug-10 3:44am    
Thank You Sir,

It is working Good.

Pankaj

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900