using System;
public class Test
{
public static void Main()
{
var dateStr = "12/29/2012 09:55:00 AM";
DateTime date = DateTime.ParseExact(dateStr,"MM/dd/yyyy hh:mm:ss tt", System.Globalization.CultureInfo.InvariantCulture);
System.Console.WriteLine(dateStr);
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCXZhciBkYXRlU3RyID0gIjEyLzI5LzIwMTIgMDk6NTU6MDAgQU0iOwogICAgICAgIERhdGVUaW1lIGRhdGUgPSBEYXRlVGltZS5QYXJzZUV4YWN0KGRhdGVTdHIsIk1NL2RkL3l5eXkgaGg6bW06c3MgdHQiLCBTeXN0ZW0uR2xvYmFsaXphdGlvbi5DdWx0dXJlSW5mby5JbnZhcmlhbnRDdWx0dXJlKTsKICAgICAgICBTeXN0ZW0uQ29uc29sZS5Xcml0ZUxpbmUoZGF0ZVN0cik7Cgl9Cn0=