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

Posted By:   Anonymous
Posted On:   Tuesday, June 25, 2002 07:39 PM

Please tell me, if I have two dates which are objects of Date or Gregorian class, how can I find out the difference in number of days between them?

Re: Difference in number of days between two dates

Posted By:   nallapalli_jayakumar  
Posted On:   Tuesday, June 25, 2002 09:49 PM

if you really want to calicute the no of days fall between two days you can make use of this line of code or we have to dates that fall in between two dates u have to write a helper class.
///

long dateCount = (long) (ToDate.getTime() - fromDate.getTime()) / (1000 * 60 * 60 * 24);
About | Sitemap | Contact