|
-
May 1st, 2000, 10:03 PM
#1
Thread Starter
New Member
I'm using VBScript in an ASP environment and I have a form field that a user inputs a date they want to search on. I need the date in the format (MM/DD/YYYY) which is what the regional settings is set at. You can not do a mask on the field (not allowed by html). What I have done so far is
1) Check the date using (isDate) function
2) Switch the value using (Format) function
But the problem is when a user inputs "Jan 11" as a value it passes the (isDate) function and the (Format) function coverts it to (01/11/2000) and I can't assume that the user is looking for that date in the year 2000.
Does anyone know of a way to check date format quickly to see if it's valid.
I can write a function that checks the format, but I want the code in the asp page to be minimal, so I'm trying to find a short way of doing it.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|