I would need to iterate one day a time the following functions which contains this parameter as follows:
start_date=input("\nStart date: mm/dd/yyyy ")
end_date=start_date
fun(start_date,end_date)
where start_date should be a date chosen by user in that format. End_date has to be equal to start date, as I am interested in one-day search. However, I would need to repeat this research also for the other days. My code is currently doing the following:
- enter a start_date. It is my start date. For example: 08/22/2020
- then set end_date equal to start_date. Then it is equal to 08/22/2020
- apply this function to look for information in 08/22/2020;
- when it finishes (it is included in my function), please update the date, increasing by one (i.e. 08/23/2020);
- repeat the search in 08/23/2020
I am having difficulties to look for next day, also because there might be months with 30, 31 and 28/29 days.
Could you please tell me how could I update my code?