Can use UiPath Click the calendar


Let UiPath click to automatically select yesterday’s date every day.



This Will give the Yesterday’s Date

Change selectors so that it will click on the yesterday date

Hi @Sarttra

First get the current date and subtract one day from current date

dateObject = DateTime.Now.AddDays(-1)
str_month = dateObject.ToString("MMMM")
str_day = dateObject.Day
str_year = dateObject.Year

Then use this and click the dates wisely by giving the proper selectors.

Hope it helps.

1 Like

Hi @Sarttra

Yes, We camn able to click the Yesterdays date in UiPath.

Use this below expression in the Assign activity

yesterdayDate = DateTime.ParseExact(DateTime.Now.AddDays(-1).ToString("M/d/yyyy"), "M/d/yyyy", System.Globalization.CultureInfo.InvariantCulture).Day

Pass the yesterdayDate variable in the selector


1 Like

Check this out on how to interact with Calender using UiPath

For all DateTime functions u can refer this

Cheers @Sarttra

1 Like

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