How to subtract days from a date when I have string variable

Consider I have a string variable “Days” in which it will change according to the data. adn another variable “DateOfMonth” which have a specific date.
now I want another date which is Subtraction of “Days” from the “DateOfMonth”

For Example DateOfMonth = Today date and Days = 3

How can I use “Days” variable as DateOfMonth.Adddays(-“Days”)?

Hi @saandra - Convert.ToInt32(“Days”).ToString would change that to an Integer value

Regards,
AK

Hi @saandra

Use

Cint(Days)

Thanks
Ashwin.S

Hello @saandra
Use this code in an Assign Activity
YourdatetimeVariable.AddDays(-Convert.ToInt32(days))