Results 1 to 3 of 3

Thread: Javascript Time comparison

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Newcastle
    Posts
    260

    Javascript Time comparison

    Hi, I need a javascript script that validate how far apart 2 times are if its more than a hour then submit the form else alert them.. How on earth do I do this in Javascript. Help me please

  2. #2
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090

    Re: Javascript Time comparison

    What format is the time in? Or do you basically want to do that one time is recorded when the page loads. Then another when they submit a form. Then if the time is more than 1 hour, then don't submit?
    Have I helped you? Please Rate my posts.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Newcastle
    Posts
    260

    Re: Javascript Time comparison

    well i have the time displayed in 24 hr format on the web page what I want is to compare that with the time they have entered in on the form if its less than an hour then dont submit else do.

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