[android-developers] Re: Problem to count number of days between Two dates...

2009-09-25 Thread Streets Of Boston
This may get you into trouble if a time-span crosses a DST change. A day does not necessarily have 24 hours. In many areas in the world, twice a year, a day does not have 24 hours, but 23 or 25 instead. Not to mention the occasional leap-seconds that are added to some years. On Sep 25, 12:22 am,

[android-developers] Re: Problem to count number of days between Two dates...

2009-09-25 Thread Benjamin
Instead of calculating the difference based on the date (month-day- year) you could calculate it by the difference of the time since 1.1.1970. You would use getTime() on both, then get the difference between them. Then you can divide this by 86.400.000 (which is the milliseconds in a day) to get t

[android-developers] Re: Problem to count number of days between Two dates...

2009-09-24 Thread ragavendran s
Finally I got it.. Thanks for ur support On Fri, Sep 25, 2009 at 9:15 AM, ragavendran s wrote: > I want to calculate the difference between two Dates..Can anybody tell > how to calculate the difference between two days > > Here is my Codeit Displays Calendar and