blog.pagesd.info // Archives // Traductions

yyyymmdd to DateTime

2005-08-02 #code-snippets,#c-sharp

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