Let's assume that the range is demarcated by the start date, 2019 Feb 1, and the end date, 2019 Feb 21. The solution to this problem should loop the [2019 Feb 1, 2019 Feb 21) interval with a step of a day and print each date on the screen. Basically, there are two main problems to solve:
- Stop looping once the start date is equal with the end date.
- Increase the start date day by day until the end date.