How to get 10 days from Today

I have been trying to get 10 days from today

For Eg: if today is 3.3.2022, so i need to print 13.3.2022

For Current Date i am using: DateTime.Now.ToString(“dd.MM.yyyy”)

@mayankjha986
Please refer below post which is similar to your case.

Hi @mayankjha986

Try this expression

DateTime.ParseExact("3.3.2022",("d.M.yyyy"),Globalization.
CultureInfo.InvariantCulture).AddDays(+10).ToString(“d.M.yyyy”)

Regards
Gokul

1 Like

Refer the screenshot

image

Have a look on the Thread for more information

https://forum.uipath.com/t/all-about-datetime-uipath/395481/10

Regards
Gokul

Hi @mayankjha986

Try DateTime.Now.AddDays(10).ToString(“dd.MM.yyyy”)

Kind regards

Hi @mayankjha986
currrent day - DateTime.Now.ToString(“dd.MM.yyyy”) --string

10 days from today - DateTime.Now.AddDays(10).ToString(“dd.MM.yyyy”)—string

Thanks

@mayankjha986
Try this :
Now.AddDays(10).ToString(“dd/MM/yyyy”)

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