Can any one guide me to compare to dates and get the difference.I can use before or after method to check the date is before the date passed as argument.is there any other method to get the difference?
In the past, I have recommended those articles to posters that asked very similar questions. They have consistently found the articles useful and were able to come up with solutions to their problems. If after reading the articles, you still have some questions, please post them and some one can assist you further.
I hope that helps.
Joined: Feb 03, 2004
if you have to go knee-deep into details, like leap-years and summer/winter-time, i made very good experiences with joda-time. that's an open-source framework, and can be found here.