I need to do some validation in classic asp on some user-supplied strings to make sure they are valid dates. How can I parse the string to a date while checking for type mismatch exceptions…
So far it’s looking alot harder than I thought!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
IsDatefor this.This determines whether the value is a date or can be converted to a date.
E.g. (from here),
Output: