Calculate new date value
I want to calculate a new date value from an existing date (DateTime) and a duration (integer). (e.g. 28/03/2019 + 6 days = 03/04/2019 (dd/mm/yyyy)). Is there a way to add the duration (6 days) to a date value, or can I convert the date to an integer?
0
-
Hi there,
You can use AddDays method on your DateTime Object. This method takes in an integer input and returns a DateTime object.
Thanks,
Preet Saini0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar