date&time script

4

4you2

Hello,
I need a script that will calculate how many hours is passed from specific
date & time till another date&time.
For example:
from 12.19.2006, 10:00 to 15.12.2006, 15:00 is
passed 77 hours..
hope you unerstand me.. :)
 
E

Evertjan.

4you2 wrote on 19 dec 2006 in comp.lang.javascript:
Hello,
I need a script that will calculate how many hours is passed from
specific date & time till another date&time.
For example:
from 12.19.2006, 10:00 to 15.12.2006, 15:00 is

12.19.2006
15.12.2006

You are digging your own grave with this notation!

always use: 2006/12/19
passed 77 hours..
no!

hope you unerstand me.. :)

see uner:

<http://www.merlyn.demon.co.uk/js-date1.htm#diff>
 
L

Lee

4you2 said:
Hello,
I need a script that will calculate how many hours is passed from specific
date & time till another date&time.
For example:
from 12.19.2006, 10:00 to 15.12.2006, 15:00 is
passed 77 hours..
hope you unerstand me.. :)

In your first date, the month seems to be the first field.
In the second date, the month must be the second field.
If your data isn't consistent, you don't stand a chance.


--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top