wadha alketbi wrote:
Thanks. Have a
cow!
A couple of things that might make it a bit more "generic":
1. Create a separate method for calculating the difference between two
Dates in days, eg:
and now you can get a "whole number" of days difference with:
long days = daysBetween(start, end).longValue();
2. Put these methods in a separate utility class (
DateUtils?) so that you can re-use them whenever you want.
HIH
Winston