I am searching a value in previous week date range, if that value found in any date then bot exit from that loop until bot search each line of item of previous week date range.
In For each row activty you can get the date as DateTime like: Datetime.ParseExact(CurrentRow.Item(“Visit Date”).ToString,“MM/dd/yyyy hh:mm:ss”,System.Globalization.CultureInfo.InvariantCulture)
Then, in If condition you should control the date if it is in previous week range like: now.AddDays(-(now.DayOfWeek))>currentDate and currentDate > now.AddDays(-(now.DayOfWeek)-7)
Make sure that ‘currentDate’ variable type is System.DateTime