string date = "16/02/03"; DateTime dt; if (!DateTime.TryParseExact( date, "yy/MM/dd", System.Globalization.CultureInfo.CurrentCulture, System.Globalization.DateTimeStyles.None, out dt)) { // conversion didn't work } System.Diagnostics.Debug.WriteLine(dt);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)