M
M.i.r.a.g.e.
I am sorry if this has been asked before, but I looked all over for
exactly what I need, before asking you guys. I know that it has
something to do with the Date object, but I'm not sure how to
manipulate it.
I have 2 input fields, startTime, and finishTime.
The times need to be entered like 7:30am or 11:36pm.
All I want is to subtract the finishTime from the startTime to see how
long something took. I almost had it once, except that if I entered
the following:
startTime="7:00am" and finishTime="1:00am" (next day), it displayed "6
hours", instead of "18 hours".
I know that this should be real easy, but I just can't find this
solution, and I've been to alot of sites.
Could someone please post a snippet that can do this, or at least a
link to a page that has one. Thanks.
exactly what I need, before asking you guys. I know that it has
something to do with the Date object, but I'm not sure how to
manipulate it.
I have 2 input fields, startTime, and finishTime.
The times need to be entered like 7:30am or 11:36pm.
All I want is to subtract the finishTime from the startTime to see how
long something took. I almost had it once, except that if I entered
the following:
startTime="7:00am" and finishTime="1:00am" (next day), it displayed "6
hours", instead of "18 hours".
I know that this should be real easy, but I just can't find this
solution, and I've been to alot of sites.
Could someone please post a snippet that can do this, or at least a
link to a page that has one. Thanks.