Solved

2005 Visual Studio Date Validation

Posted on 2006-11-03
2
296 Views
Last Modified: 2008-02-20
Good Afternoon

I have a DataGridView that contains a User Entry column.  I load a default value dates into the column in the MM/DD/YYYY format.  The user can accept the default or change it to a different value.  Is there a function that will tell me if what the user entered is a valid date regardless of the format?  In other words, does vb.net "know" or have a list of acceptable date formats that it can check a value against and say if it matched a correct format or not?

Thanks,
Ed
0
Comment
Question by:lbsi
2 Comments
 
LVL 34

Accepted Solution

by:
Sancler earned 450 total points
ID: 17868340
Try the Visual Basic IsDate() function.  See here

    http://msdn2.microsoft.com/en-us/library/00wf8zk9.aspx

Roger
0
 
LVL 28

Assisted Solution

by:strickdd
strickdd earned 50 total points
ID: 17868484
If you want to use a validator control, you can use the <asp:RangeValidator type="Date"...
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now