What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 31242 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > regular expression fo date ...
Sibin.rhythm

regular expression fo date

Replies: 5 | Posted by: Sibin.rhythm on 8/27/2009 | Category: ASP.NET Forums | Views: 1710 | Status: [Member]  


I need one regular expression which satisfy one and only dd/mm/yyyy format.any other format never accept.anyone can help me????


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Vuyiswamb
Vuyiswamb  
Posted on: 8/27/2009 11:54:20 PM
Level: NotApplicable | Status: [Member] [MVP] [Administrator]

Good Morning Sibin.rhythm

Here is your Answer here

http://www.codeproject.com/KB/custom-controls/datevalidator.aspx


Thank for Posting at dotnetfunda


Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Sibin.rhythm, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Lakhangarg
Lakhangarg  
Posted on: 8/28/2009 12:41:33 AM
Level: Silver | Status: [Member] [Moderator]

Hi Sibin-

Use This for dd/mm/yyyy format
(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d

Thanks & Regards
Lakhan Pal Garg
http://lakhangarg.blogspot.com/ 

Sibin.rhythm, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Sibin.rhythm
Sibin.rhythm  
Posted on: 8/28/2009 12:44:10 AM
Level: Starter | Status: [Member]

Thankyou very much

Sibin.rhythm, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Vuyiswamb
Vuyiswamb  
Posted on: 8/28/2009 1:54:05 AM
Level: NotApplicable | Status: [Member] [MVP] [Administrator]

Thank you for posting at dotnetfunda


Vuyiswa maseko

Thank you for posting at Dotnetfunda
[Administrator]

Sibin.rhythm, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Sibin.rhythm
Sibin.rhythm  
Posted on: 8/28/2009 3:11:45 AM
Level: Starter | Status: [Member]

Thankyou Lakhangarg.

But there is a little bit of problems with this Regular expression

For example
Valid :12/12/2004 02/09/2007

Not Valid :12/12/04
Not Valid :31/0/2004
Not Valid :1/2/09

CAn u help me??

Sibin.rhythm, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/21/2013 7:01:37 AM