Hi Team ,
I need increment the date like current date to future date
Ex-15.11.2023 -Current date if current date is already taken need to increment the Date value
Required -16.11.2023
-17.11.2023
-18.11.2023 so on
any Solution is there please let us know.
Regards,
Saikrishna.
Anil_G
(Anil Gorthi)
2
@Mada_Sai_Krishna
Now.adddays(1) will add a day to current date…similarly can give 2 ,3 so on as required
Cheers
Hi @Mada_Sai_Krishna
You can use the following expression:
newDate = DateTime.Now.AddDays(1).ToString("dd.MM.yyyy")
Hope this helps,
Best Regards.
Yoichi
(Yoichi)
4
Hi,
Can you try the following expression?
DateTime.ParseExact(yourString,"d.M.yyyy",System.Globalization.CultureInfo.InvariantCulture).AddDays(1).ToString("dd.MM.yyyy")
Regards,
@Mada_Sai_Krishna
Enumerable.Range(1,10).Select(Function(i) now.AddDays(i).ToString(“dd.MM.yyyy”)).toarray
gives you 10 dates which starting form the present
and its datatype is array of string
you can aslo increase its range based on your requirement
@Mada_Sai_Krishna
Please check the below flow…
it will print next 4 days dates

currentDate = DateTime.Now will give you the current date
currentDate <= DateTime.Now.AddDays(1) you can use 1,2,3 …as required.