using System;
using System.Collections.ObjectModel;
public class MainClass
{
public static void Main()
{
DateTime date1 = new DateTime(2010, 8, 18, 16, 32, 18, 500);
Console.WriteLine(date1.ToString("M/dd/yyyy h:mm:ss.fff tt"));
}
}
//8/18/2010 4:32:18.500 PM