January 8, 2009

How to convert a string in ISO date format to a C# DateTime:

DateTime dt = DateTime.ParseExact(dateString, “yyyyMMdd”, CultureInfo.InvariantCulture);