Jeff Waris wrote:
> I can handle this with CF no problem, but I have an instance where I need to
> make a DATE and TIME comparison with the server time BEFORE a form gets
> submitted. I figure the best way to handle this is in the form of some
> _javascript_ validation. I know _javascript_ but I am no expert by any means.
>  
> Here is what I got:
> -I can pull the current form date entry with document.myForm.dueDate.value.
> -Everyone enters the date in MM/DD/YYYY on the form.

Change this to separate fields for YYYY, MM and DD. Concatenate
them all together, then concatenate that with the server time and
you have YYYYMMDDHHMMSS. You can now do a simple string
comparison (just be sure to document that the code needs to be
revised before Y10K).

Jochem
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to