2005 Visual Studio Date Validation

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
lbsiAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
SanclerConnect With a Mentor Commented:
Try the Visual Basic IsDate() function.  See here

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

Roger
0
 
strickddConnect With a Mentor Commented:
If you want to use a validator control, you can use the <asp:RangeValidator type="Date"...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.