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”)
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”)
Try this expression
DateTime.ParseExact("3.3.2022",("d.M.yyyy"),Globalization.
CultureInfo.InvariantCulture).AddDays(+10).ToString(“d.M.yyyy”)
Regards
Gokul
Refer the screenshot
Have a look on the Thread for more information
Regards
Gokul
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
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.