Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

2005 Visual Studio Date Validation

Posted on 2006-11-03
2
300 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

840 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