Iterate in a loop based on certain condition

Iterate in a loop based on certain condition

Hi,

I want to iterate between from date and to date and do certain tasks on each day increment based on the day of the week.

How can I do it.. Pls. help

Thanks,
Milind Manohar