ok... first of all hello... now...I have two vars that hold time values... I want to find out the way you can substract the two o them and now the difference... something like this:
How can I do this?? Thank youCode:var time1="16:00:00", time2="20:00:00" var dif=time2-time1 // I get a NaN value (Not a Number) var dif=Date(time2)-Date(time1) // same... the Nan Value![]()


I have two vars that hold time values... I want to find out the way you can substract the two o them and now the difference... something like this:
Reply With Quote