Is there any easy library or approach to get the week (from which date ~ date) of certain periods?
Example:
There is 6 weeks(variable) (start from 1 July, 2012 ~ 11 Aug, 2012).
I want to cut off the 6 weeks into 2 portions (variable). So the results will be
1) 1 July,2012 ~ 21 July, 2012
2) 22 July,2012 ~ 11 Aug, 2012... etc
With jodatime, I can easily get the number of weeks between certain periods though.
All I know is Start Date and End Date which both are variables and cutoffweeks amount(eg.6 weeks or 4 weeks).
Its not exactly clear what you want, but Joda-Time makes most things rather easy.
I guess you need something like :