[thelist] JS Date Issue
Salvatore Palmisano
spalmisano at usaiss.com
Mon Jun 25 16:31:29 CDT 2001
There has to be an easier way to validate dates in javascript.
I have a field on a web form that needs a date in mm/dd/yyyy format. In
VBScript, I can simply call the IsDate() function and test the input for
validity.
Is there nothing like this for javascript? I did a search on google for
"date validation" and found scripts ranging from 50 lines to over 200 lines
of code.
All I need is something that'll force the field to have this format and
reject everything else.
Sorry, my JS is a bit rusty.
Thanks.
--Salvatore
More information about the thelist
mailing list