Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-09-2006, 08:16 PM   PM User | #1
weely
New Coder

 
Join Date: Jul 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
weely is an unknown quantity at this point
calculating time

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.
weely is offline   Reply With Quote
Old 07-10-2006, 03:51 PM   PM User | #2
Beagle
Senior Coder

 
Join Date: Jul 2005
Location: New York, NY
Posts: 1,084
Thanks: 4
Thanked 19 Times in 19 Posts
Beagle is an unknown quantity at this point
The Date object is all you need.

http://www.w3schools.com/jsref/jsref_obj_date.asp
Beagle is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:03 AM.


Advertisement
Log in to turn off these ads.