Replacement for VBs IsDate
Category:
Dates and MathType:
ClassesDifficulty:
IntermediateAuthor: Anonymous
Version Compatibility: Visual Basic 6
More information:
IsDate() is useless because it returns True if the parameter can be converted to a date using ANY regional setting. Depending on where you live either 1/30/2003 is a date OR 30/01/2003 is a date, but not both. IsDate returns true for both of these.
This function validates dates in a variety of formats commonly used in the USA.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: