posted 17 years ago
Yes Edwin. I wanted all dates (either as date objects or as strings) between 2 date objects.
I spent some time on it, doing it the hard way (long code but does it all), and then found an easy way to do it! Heres the easy code.
while (!calStart.equals(calalEnd)) {
// Add the date/cal to a list object
// add 1 day to the calStart.
}
I realise now, Calendar.add does it all for you! (The roll over between the month and the year.)
Thanks Jeff.