...

View Full Version : calculating time



weely
07-09-2006, 08:16 PM
Hello there,

I need help calcuating time using javascript. For example:

start time= 9:00
finish time= 18:00
break=1:00

Total hours worked=(finish time - start time) - break

It's a bit complicated considering that one is working in minutes. Can anyone help? I'd really appreciate it.

Beagle
07-10-2006, 03:51 PM
The Date object is all you need.

http://www.w3schools.com/jsref/jsref_obj_date.asp



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum