I have a code:
int MonthNow = System.DateTime.Now.Month; int YearNow = System.DateTime.Now.Year; int DayNow = System.DateTime.Now.Day;
How
Use DateTime.AddDays() (MSDN Documentation DateTime.AddDays Method).
DateTime.AddDays()
DateTime tomorrow = DateTime.Now.AddDays(1); DateTime yesterday = DateTime.Now.AddDays(-1);