Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
Iterating Through Dates
Steve Dyke
Ranch Hand
Posts: 2206
2
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 148
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 2206
2
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks. I got it to work as you said.
Ulf Dittmer
Rancher
Posts: 43081
77
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
This
thread
has a great subject line, so I was kind of disappointed to read about calendars and stuff.
Jim Yingst
Wanderer
Posts: 18671
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
"I'm not back." - Bill Harding,
Twister
Bill Cruise
Ranch Hand
Posts: 148
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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.
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
how can i get previous date?
how to get duration starting date to ending date in visual jsf
prepareStatement() returns 0 value
string question
How to get Current Date in Xsl
Struts 2: Iterator/Valuestack question.
More...