C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Restricting Date Values with Regular Expression validator


Posted Date: 31 Jul 2008    Resource Type: Code Snippets    Category: Regular Expressions
Author: Rumpa MMember Level: Gold    
Rating: Points: 3



The code sample contains examples on how to restrict the user to enter a data value in a particular format. These formatting rules can be enforced by using Regular Expression validator.


date Format (for MM/DD/YYYY format)


([1-9]|1[012])[- /.]([1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d




date Format (for DD/MM/YYYY format)


(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d






Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Formatting dates with regular expressions  .  Formatting dates using regular expression validator  .  Formatting dates  .  Calender Format  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: To restrict date to mm/dd/yyyy format
Previous Resource: Regular Expression Samples
Return to Discussion Resource Index
Post New Resource
Category: Regular Expressions


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use