I'm trying to convert a string into a date type. This is the wasy bit but I want to convert it into a US format from a GB format. The code I have is as follows
string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); DateTime myDate = DateTime.ParseExact(date, "yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture);
myDate defaults back to the GB style date.