Example
As per today's date 24 june 2019 (which is week 24 in a year) then it should show the below details.
data:[
week:24
{
startDate:24-06-2019,
endDate: 28-06-2019
},
week: 25
{
startDate: 01-07-2019,
endDate: 05-07-2019
}
Similar data for one year. How can I achieve this data in java. As I am new to java I am struggling to solve this issue. Please help with your explanation or code if possible.
PS: There are 53 weeks in a year.