Java Date question?

I need to a date variable
to loop throught 01jan99 to
01aug99.  What's is easiest
way to do this?
yliu8Asked:
Who is Participating?
 
snilesConnect With a Mentor Commented:
Try this:

Calandar d = new Calandar();
d.set(1999,0,1);

Calandar end_date = new Calandar();
end_date.set(1999,7,1);

while ( !d.after(end_date) ) {
  // Your Logic here...

  d.add(Calendar.DATE,1);
}
0
All Courses

From novice to tech pro — start learning today.