https://forum.uipath.com/t/how-to-get-yesterdays-date/2266/2
As mentioned in this topic where we were extracting yesterday’s date.
It works fine when I mention date format as “DD.MM.YYYY” but it is giving some weird date when trying to get date in format “YYYYMMDD”.
Copying the code again here which I am trying to do
Today.AddDays(-1).ToString(“yyyymmdd”).
e.g today’s date- 01/05/2019
Code is giving me date as 20190030