|
Listing 16-1 extracted from chapter Base classes
Listing 15-24< > Listing 16-2
This listing can be compiled with the command line: csc.exe /target:exe Example_16_1.cs Errors: 0 Warnings: 0
Example_16_1.cs
using System;
class Program {
static void Main() {
DateTime d = DateTime.Parse( "10/15/2002 2:30:0 PM" );
Console.WriteLine( d.ToString("G") );
}
}
Copyright Patrick Smacchia 2006 2007
|