Anyone bored and want to make a method for me?
I've got a handful of stuff I'm doing right now. Very low on that list is a method that I will eventually need to make. If you feel like giving it a shot, I would appreciate it. There is no money or anything that I can give for the help (sorry), but if you feel like, take a shot at it.
Method Details:
Takes in two Dates
Returns an array of all the Dates between the two Dates (inclusively)
It is pretty straight forward, and I'm sure most people on the forum could do it. When I will have to get around to it, I will have to do some research on Date and that sort of crap before I can make the method since I've never used it before. If you have experience with the Date class (or any other classes that would be better for this) and if you feel like giving me a hand, it is appreciated.
Cheers
Re: Anyone bored and want to make a method for me?
Nvm, I got it done.
In case anyone needs it:
Code java:
public List<Date> getDates(Date d1,Date d2)
{
List<Date> dates = new ArrayList<Date>();
long interval = 1000 * 60 * 60 * 24;
long endTime = d2.getTime();
long curTime = d1.getTime();
while (curTime <= endTime) {
dates.add(new Date(curTime));
curTime += interval;
}
return dates;
}