To get the date which is one day after a given date, we can simply add one day to the date using the AddDays()
method. Here's an example:
main.cs108 chars3 lines
Alternatively, we can use a TimeSpan
object with a value of one day to achieve the same result:
main.cs146 chars4 lines
Both of these approaches will give us a DateTime
object representing the date which is one day after the original date.
gistlibby LogSnag