C#.net get tomorrows date
How to get tomorrows date and time in [C#] .net program? Let's see example of Vb.net and C#.net to get tomorrows date.
C#.net example to get Tomorrow
using System;
namespace DateAndTime.Examples
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Tomorrow using DateTime.Today is {0}", DateTime.Today.AddDays(1));
Console.WriteLine("Tomorrow using DateTime.Now is: {0}", DateTime.Now.AddDays(1));
Console.ReadLine();
}
}
}
(VB.net) example to get Tomorrow.
Namespace DateAndTime.Examples
Class Program
Private Shared Sub Main(args As String())
Console.WriteLine("Tomorrow using DateTime.Today is {0}", DateTime.Today.AddDays(1))
Console.WriteLine("Tomorrow using DateTime.Now is: {0}", DateTime.Now.AddDays(1))
Console.ReadLine()
End Sub
End Class
End Namespace
Tomorrow using DateTime.Today is 1/2/2012 12:00:00 AM.
Tomorrow using DateTime.Now is: 1/2/2012 6:42:51 PM.
Other Examples
How to format Time in C#.net and VB.net program.
DateTime Time Format string {HH:mm:ss}.
C#.net date time Culture.
C#.net DateTime Month.
string was not recognized as a valid date time
Get Today
DateTime in English UK format
Get Day Of year
DateTime.Today vs DateTime.Now