Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > UK Date Format Regular Expression

Reply
Thread Tools

UK Date Format Regular Expression

 
 
Niclas
Guest
Posts: n/a
 
      12-02-2005
Hi,

Does anyone have a Regular expression that validates a date in the UK format
dd/MM/yyyy to share ?

Many thanks

Niclas


 
Reply With Quote
 
 
 
 
John Timney \( MVP \)
Guest
Posts: n/a
 
      12-02-2005
first hit in google came up with this one

http://www.codetoad.com/forum/22_18859.asp

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Niclas" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Does anyone have a Regular expression that validates a date in the UK
> format dd/MM/yyyy to share ?
>
> Many thanks
>
> Niclas
>



 
Reply With Quote
 
 
 
 
Niclas
Guest
Posts: n/a
 
      12-02-2005
Yes saw that one, but it includes time as well. I am only interested in the
date. Managed to rearrange a US format expression into UK, and think it is
working

Here it is if someone needs it:
(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d

Niclas

"John Timney ( MVP )" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> first hit in google came up with this one
>
> http://www.codetoad.com/forum/22_18859.asp
>
> --
> Regards
>
> John Timney
> ASP.NET MVP
> Microsoft Regional Director
>
> "Niclas" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi,
>>
>> Does anyone have a Regular expression that validates a date in the UK
>> format dd/MM/yyyy to share ?
>>
>> Many thanks
>>
>> Niclas
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Seek xpath expression where an attribute name is a regular expression GIMME XML 3 12-29-2008 03:11 PM
Matching abitrary expression in a regular expression =?iso-8859-1?B?bW9vcJk=?= Java 8 12-02-2005 12:51 AM
Date, date date date.... Peter Grison Java 10 05-30-2004 01:20 PM
Date Format - best way of converting a string into a date format Brian Candy ASP .Net 2 02-18-2004 02:13 PM
Dynamically changing the regular expression of Regular Expression validator VSK ASP .Net 2 08-24-2003 02:47 PM



Advertisments