Getting the Day Minus one

Hi

Hope this expression would help you resolve this

If the input is in a string variable named str_input

Then in a assign activity

str_output = Datetime.ParseExact(str_input.ToString,”dd/MMM/yyyy”,System.Globalization.CultureInfo.InvariantCulture).AddDays(-1).ToString(“yyyyMMdd”)

This will give the day -1 as you expect

Cheers @HeartCatcher

2 Likes