SAP - variable to select a date range

How do you create a variable to select prior months dates.

Hello meada;

For example 18 month back, use minus number of months;

Select the text box and type : DateTime.Now.AddYears(-1).AddMonths(-6).ToString(“dd.MM.yyyy”)

Hope that helps

I have a similar issue where I need to enter the date for one day before
image here I just need to change the date to one day before …example if I run today then the bot should enter the date for yesterday///…like
image

Kartik;

Select the date you want and store in a variable eg: Mydate

Then subtract 1 day = Mydate.AddDays(-1).

Hope that helps

1 Like

Thanks alot …will try