date&time script

Discussion in 'Javascript' started by 4you2, Dec 19, 2006.

  1. 4you2

    4you2 Guest

    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.. :)
     
    4you2, Dec 19, 2006
    #1
    1. Advertising

  2. 4you2

    Evertjan. Guest

    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>


    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
     
    Evertjan., Dec 19, 2006
    #2
    1. Advertising

  3. 4you2

    Lee Guest

    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.


    --
     
    Lee, Dec 19, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris Berg
    Replies:
    0
    Views:
    795
    Chris Berg
    Oct 27, 2003
  2. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,278
    Michael Borgwardt
    May 30, 2004
  3. Keith Cochrane
    Replies:
    2
    Views:
    626
    Keith Cochrane
    Aug 6, 2006
  4. flamesrock
    Replies:
    8
    Views:
    477
    Hendrik van Rooyen
    Nov 24, 2006
  5. Summu82
    Replies:
    5
    Views:
    869
    Richard Heathfield
    Jun 7, 2006
Loading...

Share This Page