Close
jGuru Forums
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
long dateCount = (long) (ToDate.getTime() - fromDate.getTime()) / (1000 * 60 * 60 * 24);