Click to See Complete Forum and Search --> : Date Difference


August 21st, 1999, 10:14 AM
how do i get the difference between the dates ? ie. 31-12-1997 and 01-01-1998 then the difference should be 1 day !!
If any one can help me out ? Please Its an urgency !!!

Regards
chetanu@usa.net

unicman
August 22nd, 1999, 10:30 AM
What u can do is get the time in milliseconds of the two dates get the difference. Then u can either do calculation of number of days or u can give it to Date/Calendar class.

- UnicMan

poochi
October 7th, 1999, 12:15 PM
i dont know why UnicMan's answer was rejected. Take a look at this site..

http://www.codeguru.com/java/articles/476.shtml