Avatar

Level 10

Hi,

Have you tried using FormCalc instead of JavaScript?

FormCalc comes with some very handy time (and date) functions. When using a time object, you can use Time2Num to convert the inputted time to a number from the epoch. Once you compare the two numbers you cn convert back to a time or take appropriate action.

Niall