date validation?

  • Thread starter Thread starter Null
  • Start date Start date
N

Null

How to write an IsDate function that actually checks for a particular date
format?

Using try-catch on Convert.ToDateTime(sDate) doesn't catch invalid entry
(i.e. 5/2000).....I want the dates to be input as mm/dd/yyyy OR m/d/yyyy OR
m/d/yy (etc.)....

Any thoughts?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Validate date 6
date validation 1
date format question 2
DATE Format 2
Recordset Findfirst Date Issue 0
Date validator when formatted 1
How to enter a date in DD-MM-YYYY format 2
Handling dates in VB.NET 2

Back
Top