Using a startDate and an endDate, i need to get an array of calendar weeks for each week between the dates. Example: startDate: 12/02/22 endDate: 01/28/23
Given these two dates, i need to get an array containing an entry for each calendar week. Expected result: ["48/2022", "49/22", "50/2022", "51/2022" .......... "04/2023"]
As i'm not very familiar with javascripts date objects, i'm not quite sure how to approach this problem. I'm open to pure javascript implementation but also to libraries like moment.js I have read through moment.js documentation but i don't think they have an out of the box feature for this.