Day (date) increment in Type Into field

Hi all,

I’m trying to extract a report every single day starting the 1st day for the previous month.

The field I use is as below:

from

After put in the date the robot will click Run and then it will go back to the process to put in the date. But this time with the DAY added by 1. The robot then will repeat the process until end of the month.

I just could not find a way to do it using for each loop (not even sure if this is the correct method)

I really appreciate your kind help.

Thanks.

Please refer to this post:
https://forum.uipath.com/t/how-to-add-specific-date-10-days/55303

Hi olgu.

Yes I already read that topic but it seems like that is for 1 time run only.

I need the robot to repeat back the steps to select date but with +1 day until the last day of the month.

Hi nawkaz

use foreach method in value field type the Enumerable.Range(1,datetime.DaysInMonth(cint(now.ToString(“yyyy”)),cint(datetime.Now.AddMonths(-1).ToString(“MM”))))

type arugument set int32

inside DateVariable.AddDays(item).ToString

Hi amaresan.

Thanks for your help.
Unfortunately I still can’t get it to work. By any chance if you have any sample xaml if you don’t mind?

HI nawkaz

i attached the code i just used messagebox instead of that u will use type into activity

dateincrement.xaml (9.6 KB)

1 Like

That worked like a charm!

Thank you so much! Appreciate it!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.