Help with check date and hours
Hi all.
I have this form:
I need one function javascript check date and time insert in the form.
If date is same the date now and the hour is less two hours the hours now, the form is stopped.
For example:
date now = 22/09/2008
hours now = 14:50
date = 22/09/2008
hours = 15:30 ===> KO
date = 22/09/2008
hours = 16:49 ===> KO
date = 22/09/2008
hours = 16:50 ===> OK
Can you help me?
kind regards
viki
Hi all.
I have this form:
Code:
<html> <head> </head> <body> <form name="orario" method="post" action=""> <input type="text" name="hour" size="20"> <input type="text" name="dates" size="20"> <input type="submit" value="Invia" name="B1"> </form> </body> </html>
If date is same the date now and the hour is less two hours the hours now, the form is stopped.
For example:
date now = 22/09/2008
hours now = 14:50
date = 22/09/2008
hours = 15:30 ===> KO
date = 22/09/2008
hours = 16:49 ===> KO
date = 22/09/2008
hours = 16:50 ===> OK
Can you help me?
kind regards
viki
Comment