Loop between two days in script

Dears

i need your advice , how to write the right script to loop between two dates and do action related to each date in this data range

thanks as usual