using System;
using System.Globalization;
class Sample
{
public static void Main()
{
string dateString = "5/1/2008 8:30:52 AM";
DateTime date1 = DateTime.Parse(dateString, System.Globalization.CultureInfo.InvariantCulture);
}
}