Author
Iterating Through Dates
Steve Dyke
Ranch Hand
Joined: Nov 16, 2004
Posts: 1119
If I have a begining date and and ending date how do I iterate through them getting a value for each month?
Bill Cruise
Ranch Hand
Joined: Jun 01, 2007
Posts: 148
As I hinted at in your other post, make a Calendar object for both dates. Add one to the day field of the start date until it reaches the end date.
Steve Dyke
Ranch Hand
Joined: Nov 16, 2004
Posts: 1119
Thanks. I got it to work as you said.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 32421
posted Jun 10, 2008 14:55:00
0
This thread has a great subject line, so I was kind of disappointed to read about calendars and stuff.
Android apps – ImageJ plugins – Java web charts
Jim Yingst
Wanderer
Sheriff
Joined: Jan 30, 2000
Posts: 18641
"I'm not back." - Bill Harding, Twister
Bill Cruise
Ranch Hand
Joined: Jun 01, 2007
Posts: 148
Ulf, I'm not sure what it says about me that I had to read your post 3 times before I got the joke. I guess my mindset is extremely dependent on what internet forum I'm reading.
subject: Iterating Through Dates