|
-
Dec 30th, 2003, 10:57 AM
#1
Thread Starter
I wonder how many charact
Date validation
I'm working on a date/time control that allows a user looking at a webpage to enter a date/time.
I have finished the javascript for enforcing proper entry of a time (military or standard).
I am now working on a way to enforce a proper date.
I will be using a regular expression, however, it is quite possible that the user may enter 02/31/2003. (Feb 31 2003), in which case this really only helps me ensure the date is written in the proper format mm/dd/yyyy, not if the date is valid.
So, now, along with the regular expression, I need to write javascript that will flag the user if the date is not valid. This is really straight forward.
My main concern being, if the webpage loads to a user in Europe, I have to somehow get the culturalization of that user, and apply that to the javascript.
Any ideas?
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
|