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

Hi @cbhavana

You can try this

DateTime.ParseExact("1/9/2022", "d/M/yyyy", System.Globalization.CultureInfo.InvariantCulture).AddDays(-Cint(YourStringVariable)).ToString("d/M/yyyy")

Regards
Sudharsan