using System;
class MainClass
{
public static void Main(string[] args)
{
TimeSpan oneWeek = new TimeSpan(4, 12, 0, 0) + new TimeSpan(2, 12, 0, 0);
// Create a DateTime with the current date and time.
DateTime now = DateTime.Now;
// Create a DateTime representing 1 week in the future.
DateTime future = now + oneWeek;
Console.WriteLine("Future: {0}", future);
}
}
|