validation expression

  • Thread starter Thread starter Jon Paal
  • Start date Start date
J

Jon Paal

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

ValidationExpression="(^\d{1,2}/|-\d{1,2}/|-\d{4}$ )"
 
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...?
 
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.)
 
Back
Top