Difference in number of days between two dates
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, June 13, 2002 08:02 PM

I have two Calendar objects, meaning I have two different dates. How can know the difference in the number of days between these two dates? Thanks.

Re: Difference in number of days between two dates

Posted By:   Jorgen_Nordqvist  
Posted On:   Friday, June 14, 2002 05:56 AM

Convert the Calendar dates into milliseconds since 1970, then subtract the two numbers and you end up with the number of milliseconds between the two dates. That should be straighforward to convert to back to days.

Jorgen

About | Sitemap | Contact