yyyymmdd to DateTime

2005-08-02 #code-snippets#csharp

DateTime myDate;
myDate = System.DateTime.ParseExact("20050802",
                                    "yyyyMMdd",
                                    System.Globalization.CultureInfo.InvariantCulture);