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.
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.
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.