I have a process with a date picker that allows the user to type in the beginning date and ending date. The robot will open the web-page on July 1. In the date picker the robot needs to type the beginning of the previous month May 1 in one section and ending May 31 in the other section. The robot will run this process on the first of every month. I have attached a picture of the date picker. Some help would be great.!
Create 2 variable as DateTime datatype ‘LastMonthFirstDate’, ’ ‘LastMonthLastDate’
Assign the below code
LastMonthLastDate = DateTime.Today.AddDays(0 - DateTime.Today.Day)
LastMonthFirstDate = LastMonthLastDate.AddDays(1 - LastMonthLastDate.Day)
Done, I made the two variables(Thank You) How do i use them? Do i use them in the click activity once I the robot clicking in the start date?
Use type into activity to type the date
Thanks bro works nicely
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.