Jump to content


Photo

Javascript Time Difference Calculation


  • Please log in to reply
2 replies to this topic

#1 missionaire

missionaire

    Young Padawan

  • Members
  • Pip
  • 31 posts

Posted 04 March 2007 - 11:17 PM

Hi all,

I would like to ask how would it be possible for me to calculate the time difference (in hours) from 2 textbox inputs,

e.g. 12:00 and 15:00, which will return a result of 3 Hours difference


thanks in advance.

#2 Demonslay

Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 973 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 05 March 2007 - 10:29 AM

Hmm, I'm not much into JavaScript and dates, but I found this in about 2 seconds by using Google.

Time Between Calculator

Just examine the source and you should be able to see what they do to make it happen. :)

#3 missionaire

missionaire

    Young Padawan

  • Members
  • Pip
  • 31 posts

Posted 06 March 2007 - 01:45 AM

thanks demonslay :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users