Will the add days function cater all months and years?

let’s say today is 2021/09/30 and if I use .adddays(1), will it be 2021/10/01?


Yes, it can be calculated appropriate to days of month.

Ofcourse it will

Say your input is a Datetime already
Then this expression in assign activity

your Datetimevariable = Datetimevariable.AddDays(1)

This will add one day from that Datetime variable

If it’s a string with value “2021/09/30” in a string variable named Strinput

Then the expression is

Datetimevariable = Datetime.ParseExact(Strinput.ToString,”yyyy/MM/dd”,System.Globalization.CultureInfo.InvariantCulture).AddDays(1)

Cheers @shellyd

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.