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());
}
}
myDateTime11 = 15/01/2004 11:02:05 PM
myDateTime11.ToLongDateString() = January 15, 2004
myDateTime11.ToShortDateString() = 15/01/2004