Results 1 to 3 of 3

Thread: date validation......

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    India
    Posts
    298

    Question

    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.

  2. #2
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696
    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
    Attached Files Attached Files
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    India
    Posts
    298
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width