How to subtract date with days and get result as date in uipath

we convert to DateTime, substract the days and reformat into the needed format

DateTime.ParseExact(strDate, "d/M/yyyy", System.Globalization.CultureInfo.InvariantCulture).AddDays(intOffset).ToString("d/M/yyyy")

feel free to adapt the formats

1 Like