DateTime.ParseExact
DateTime date = DateTime.ParseExact("20.12.2012", "dd.MM.yyyy", System.Globalization.CultureInfo.InvariantCulture);
DateTime dt = DateTime.ParseExact("20.12.2012", "dd.MM.yyyy", CultureInfo.InvariantCulture);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)