using System;
class MainClass
{
public static void Main()
{
DateTime myDateTime11 = new DateTime(2004, 1, 15, 23, 2, 5);
Console.WriteLine("myDateTime11 = " + myDateTime11);
Console.WriteLine("myDateTime11.ToLongTimeString() = " + myDateTime11.ToLongTimeString());
Console.WriteLine("myDateTime11.ToShortTimeString() = " + myDateTime11.ToShortTimeString());
}
}
|