Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 4th, 2005, 04:53 AM
Authorized User
 
Join Date: Feb 2005
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ashokparchuri Send a message via Yahoo to ashokparchuri
Default Validation Expression

Hi,

    can any body give me expression to validate date in mm/dd/yyyy format..?

    thanks in advance-Ashok Parchuri
 
Old May 4th, 2005, 03:52 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

Have you read this article?
http://msdn.microsoft.com/library/de...l/regexnet.asp

your expression is something like this,
string s=@"^((1[1-2])|([1-9]))/(([1-2][0-9])|([1-9])|(3[0-1]))/(\d{4})$";

_____________
Mehdi.
software student.
 
Old May 6th, 2005, 05:57 AM
Authorized User
 
Join Date: Feb 2005
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ashokparchuri Send a message via Yahoo to ashokparchuri
Default

Hi thank you the article is very useful to me.

 thanks again-Ashok Parchuri





Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation of an Expression amlesh Beginning VB 6 1 October 25th, 2007 02:31 PM
Validation expression sreevani ASP.NET 1.0 and 1.1 Basics 1 April 5th, 2007 11:22 AM
Password Validation with Regular Expression moghazali ASP.NET 1.0 and 1.1 Basics 0 January 7th, 2007 04:50 AM
validation expression keyvanjan ASP.NET 1.0 and 1.1 Basics 3 October 7th, 2006 11:17 AM
Regular Expression validation ranakdinesh ASP.NET 2.0 Professional 0 March 3rd, 2006 08:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.