I use to variables:
dateAudytStart (DateTime), default: New DateTime(Now.AddMonths(-12).Year,Now.AddMonths(-12).Month,1)
dateAudytEnd (DateTime), default: New New DateTime(Now.Year,Now.Month,1).AddDays(-1)
These dates are right, when I want to start UiPath audit e.g. for April at the end of May.
If I would like to start on the beginning of the next month (June), I have to change default:
start: New DateTime(Now.AddMonths(-12).Year,Now.AddMonths(-13).Month,1)
end: New DateTime(Now.AddMonths(-1).Year,Now.AddMonths(-1).Month,1).AddDays(-1)
to receive the same result (start: 2019-05-01 and end: 2019-04-30 - 12 previous month).
Generally I do audyt for April from about 2019-05-26 to 2019-06-10.
How I would like to create fixed variables, which give me the same result (when I start my audit 2019-05-28 or 2019-06-05.