-3

Possible Duplicate:
Difference in days between two dates in Java?

I want to calculate the number of days between two days and store all those dates in a date array. How can I do that. Please help me.

Community
  • 1
  • 1
suresh
  • 9
  • 1
  • Why not try using google **before** posting? [Please read the FAQ on what questions should be posted here!](http://stackoverflow.com/faq#questions) – ppeterka Nov 08 '12 at 10:00
  • Seems a fair enough question to me. this will make it easier http://joda-time.sourceforge.net/userguide.html – NimChimpsky Nov 08 '12 at 10:01
  • you want to try `Joda date API` google for it.. http://stackoverflow.com/questions/3802893/number-of-days-between-two-dates-in-jodatime – RP- Nov 08 '12 at 10:04

1 Answers1

0

I would suggest you to use a Calendar object with Date A and begin adding a day until you reach Date B. Every time you add a day store the modified date in an array.

Take a look here too: Difference in days between two dates in Java?

PS: You should show us some code and some effort if you want a more complete answer.

Community
  • 1
  • 1
Averroes
  • 4,168
  • 6
  • 50
  • 63