JavaScript Forum JS Made Easy: Free JavaScripts Tutorials Example Code
About This Product
FontsMadeEasy.com
 
The Business Internet
Find it on This page:
 
| Over 5000 Free Fonts | Tutorials | Javascript Forum | Other Javascript Resources | Cheat Sheet

       
Jsmadeeasy Forums Home   Search   Login   Register   Member List  

 Search
   
  

Viewing Page 1. More matches available? Yes
Prev Next
1.how do i calculate diff b/w 2 dates?
Posted by sharil_hashim on 6/14/2002 5:51:00 AM
Dear All,

I've search through out the net and found some scripts that can calculate the diff. however i found that all this scripts gave me th same errors for the following dates:

31/12/2001 12:00 - 01/01/2002 12:00 = 24 hours (correct)
31/01/2002 12:00 - 01/02/2002 12:00 = -48 hours (incorrect)
28/02/2002 12:00 - 01/03/2002 12:00 = 96 hours (incorrect)
31/03/2002 12:00 - 01/04/2002 12:00 = 0 hours (incorrect)
30/04/2002 12:00 - ...
Prev Next