473,479 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

UK Date Format Regular Expression

Hi,

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

Many thanks

Niclas
Dec 2 '05 #1
2 2765
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" <li*************@hotmail.com> wrote in message
news:eC**************@tk2msftngp13.phx.gbl...
Hi,

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

Many thanks

Niclas

Dec 2 '05 #2
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 )" <ti*****@despammed.com> wrote in message
news:eD**************@tk2msftngp13.phx.gbl...
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" <li*************@hotmail.com> wrote in message
news:eC**************@tk2msftngp13.phx.gbl...
Hi,

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

Many thanks

Niclas


Dec 2 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
3242
by: Colin Steadman | last post by:
I'm a stupid ASP programmer and I dont do Javascript (except for very simple tasks anyway), and I'm in a bit of a predicament. I've used a javascript table sorting script from here: ...
1
2778
by: mg | last post by:
Does someone have RegularExpression code (C# WebForm) for server-side validation of Date (mm/dd/yyyy) ... including leap year?
5
1389
by: Hai Nguyen | last post by:
I have a textbox which requires to fill out date in the format mm/dd/yyyy I want to know how i custom my validiator to check if input is in right format Thanks
10
1448
by: Chris | last post by:
Hi, how do I validate a date using a RegularExpression-validator control ? e.g. 05/20/2004 (May 20, 2004) Or should I use another validator-control ? and how ? Thanks
2
2814
by: Rahul | last post by:
Hey Guys I have a development environment, in which the whole SQL syntax is stored in the Database. So the syntax in the databse column could be "where BirthDate = '12/31/2005' and ID =...
3
7172
by: samuelberthelot | last post by:
Hello, I would like to validate a date in a textbox on the onChange event. The date must be in the format 01/01/2007 I would like to use a regular expression to validate it but I'm not very...
4
13206
dmjpro
by: dmjpro | last post by:
Now a days I take care of sensitive coding rather than completing the code anyhow. So have a look at this code. I am trying to check the Date Format. I am here assuming that the date separator...
5
13807
by: shapper | last post by:
Hello, What is the Regex expression to validate a date time format as follows: dd-mm-yyyy hh:mm:ss An example: 20-10-2008 10:32:45
3
4567
by: snahil | last post by:
Hi, I am using a regular expression to validate a date format. The Date format which the user would enter is : DDMMMYYYY ( like 10OCT2001) I am using the following regular expression : ...
0
7027
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7019
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7067
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
6847
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5312
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
2980
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1288
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
555
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
166
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.