Adding 1 day to today's date

How do you add 1 day to today’s date? I already have the date stored in a date time variable and know about DateTime.Today to get today’s date. But what is the syntax for adding and also removing one day.

Can anyone help please? Thanks in advance. :slight_smile:

1 Like


Try below expression to add one day to today.

                             Next Day - varDateTime.AddDays(1).Tostring("dd-MM-yyyy")
                             Previous Day - varDateTime.AddDays(-1).Tostring("dd-MM-yyyy")

Brilliant. That works. Thanks man :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.