title: Get day name and number of times day repeat in date range in swift
body: <p>I have a scenario in which I get a date from backend API, I get a start date and end date, now I want to first check the day on that date, for example, today is <code>8-11-2019</code> is Friday, and end date is <code>20-11-2019</code>. Now I want to check each date day name and also a number of times day are repeating in this date range. For example if Friday is twice in this date range then I want to get those dates on click of Friday, The dates range are dynamic it can vary. Example check in screen shot,
  <a href="https://i.stack.imgur.com/5o6gw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5o6gw.jpg" alt="enter image description here"></a></p>