Date Validation in Javascript
by Susan Walsh <SusanW(at)inscodico.com>
|
| Date: |
Tue, 11 Jan 2000 14:43:30 -0800 |
| To: |
"'hwg-languages(at)hwg.org'" <hwg-languages(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
I am trying to validate a date through Javascript. What I need to do is be
sure that the date entered by the user is in the range of the present date
to one month ahead.
I have two different scripts that I have been working on. I am not quite
sure if I am going about this in the most efficient manner. I am guessing
the best way to verify the date is by having the user type in the date
themselves in three separate fields (mo, day, year).
How do I check to see if the combined date of all those fields is within the
30 day range.
Any suggestions would be much appreciated! Thanks in advance.
Here is where the two validation scripts are located:
http://www.inscodico.com/dateval2.html
http://www.inscodico.com/datevalidation.html
Susan
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.