Start Time - End Time
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   JEAN_KANG
Posted On:   Friday, February 28, 2003 12:18 AM

Hi,


How to do the time gap between 2 time.


Like the different between 10:30 AM to 11:25 AM.

Thanks.

Re: Start Time - End Time

Posted By:   Firat_Tiryaki  
Posted On:   Friday, February 28, 2003 01:21 AM

You should first convert your strings to time Date objects (Date())



Then simply substract them



The result is given in miliseconds



Check the code below and change it according to your needs







if you divide the result by 86400000, it gives you the number of days between two dates

.

About | Sitemap | Contact