Java calendar calculate days between two months
Posted on 2010-11-17
I have one final problem that I need help with. I need to calculate the number of days between two months.
I have two dates:
I need to calculate the number of days between these two months. In this case, the answer would be: 16
[i]BUT [/i]It can get tricky if the dates are like this:
In this case the number of days is 6. The reason why it should be 6 is because it's 1 month + 6 days.
Tricky, I know!