validation expression

J

Jon Paal

this validationexpression fails for "mm/dd/yyyy" what is correct pattern ?

ValidationExpression="(^\d{1,2}/|-\d{1,2}/|-\d{4}$ )"
 
M

Mark Rae

this validationexpression fails for "mm/dd/yyyy" what is correct pattern ?

ValidationExpression="(^\d{1,2}/|-\d{1,2}/|-\d{4}$ )"

You can't validate dates this way - this would allow e.g. 99/99/0000

Are you trying to do this in client-side JavaScript...?
 
G

Guest

Hi,

In addition to Mark's reply you have to consider every aspect of the date
validation, lexical and logical validation (number of days in a certain
month, leap years etc.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Something is wrong 1
Validator 3
Regular Expression 1
Invisible folder 0
Regular Expression Date Validation 1
validationexpression 2
Regular Expression for datetime 6
date validation 1

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top