I trying to get the week numbers which fall between a given start date and end date in Java. This is ISO8601
date.
Example
startDate - "2018-08-24T12:18:06,166"
endDate - "2019-08-24T11:18:06,166"
The current week number is 34.
For this example, I would get 34,35,36... Last week number of 2018..1,2...last week number of 2019 and so on
Is there a good solution to this ?
Presently I got it worked with same year date range, what I tried is, I get the start week number and end week number from the start date and end date, and then I loop it giving the start value and end value. But if the date range falls in multiple years, how would it be? Can any one help me