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.ToLongDateString() = " + myDateTime11.ToLongDateString());
Console.WriteLine("myDateTime11.ToShortDateString() = " + myDateTime11.ToShortDateString());
}
}
|