PDA

Click to See Complete Forum and Search --> : date validation......


rammy
Jan 22nd, 2001, 11:06 PM
Hi,
I need to validate the date. Im using drop down boxes for users to select the date. I need to make sure that they're selecting a valid date. Is there any function (like isDate() in vbscript) in Javascript? or will I have to write my own function??

Thanx.

Ianpbaker
Jan 23rd, 2001, 03:07 AM
Hi Rammy

Unfortunatley there are no isdate functions in javascript and you have to make your own. Here is a js file with loads of form validation functions including a bloody good date checker (including Leap years)
Rename the file .js and stick this in your page

<script src="applicationvalidate.js"></SCRIPT>


Hoep this helps

Ian

rammy
Jan 23rd, 2001, 03:18 AM
Thanx Ianpbaker. Yes I realized by this time that there's no isDate() function in javascript.....and am writing my own.

Thanx again for the code,
Rammy.