RegExp for Data

P

Paperback Writer

Hi,
I'd like know if some good soul can send me a RegularExpression for Data in
this format: dd/mm/yyyy

Thanks in advance

--

Atenciosamente,

Daniel Groh
CTF Technologies do Brasil Ltda.
Analista Programador
Fone: 11 3837-4203
E-mail: (e-mail address removed)
 
T

Tod Birdsall

Hi Daniel,

The best reference I have found online for Regular Expressions related
to .NET is http://RegExLib.com.

As for your request, here is what I normally use:
^((((0?[13578])|(1[02]))[\/]((0?[1-9]|[0-2][0-9])|(3[01])))|(((0?[469])|(11))[\/]((0?[1-9]|[0-2][0-9])|(30)))|(0?[2][\/](0?[1-9]|[0-2][0-9])))[\/]((19\d{2})|(2[01]\d{2}))$

Tod Birdsall, MCSD
http://tod1d.blogspot.com
 

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

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,192
Latest member
KalaReid2

Latest Threads

Top