using System;
class MainClass
{
public static void Main()
{
DateTime myDateTime = DateTime.Parse("1/11/2004 23:10:30");
TimeSpan myTimeSpan = new TimeSpan(1, 2, 4, 10);
DateTime myDateTime7 = myDateTime.Add(myTimeSpan);
Console.WriteLine("myTimeSpan = " + myTimeSpan);
Console.WriteLine("myDateTime6.Add(myTimeSpan) = " + myDateTime7);
}
}
|