I want to add 25 days to the todays date
I have used str_Var= DateTime.Now.AddDays(25).ToString("yyy/mm/dd).tostring, but the month is going to 13 after 12,
can any one give me the solution
Thanks
Saritha
@THIRU_NANI @Gangadhar_Athili
Hi! @saritha_panguluri ,
The expression which you’ve used is incorrect…
The above expression means you’re adding 25 days to present day.
Try like this:
DateTime.Now.AddDays(25).ToString("yyy/MM/dd")
Regards,
NaNi
solved thank you
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.