// String to DateTime String MyString; MyString = "07/10/2012 12:00:00"; DateTime MyDateTime; MyDateTime = new DateTime(); MyDateTime = DateTime.ParseExact(MyString, "yyyy-MM-dd HH:mm", null);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)