Adding days to the specific date

I want to add to 30 days to the specific date. for example:
25.01.2020 … 25.02.2020
03.05.2020 … 03.06.2020
I have the problem to convert from string to date format, I have the string (25.01.2020), (03.05.2020), etc. I failed to convert the string to date format. After converting the date format, I want to add 30 days to the date.But I don’t know how to solve it. If you know the solution, let me know, please.

Try this
out_date = DateTime.ParseExact(“25.01.2020”,“dd.MM.yyyy”,system.globalization.CultureInfo.InvariantCulture).Adddays(+30)

where out_date is of type datetime


1 Like

It works. This is the solution I need. Thank you.

Mark it as solution.