DateTime.Now.ToString("tt HH:mm:ss ")
string dateString = "08102013223300"; string format = "ddMMyyyyHmmss"; DateTime dateTime = DateTime.ParseExact(dateString, format, System.Globalization.CultureInfo.InvariantCulture); textBox1.Text = dateTime.ToString("yyyy-MM-dd H:mm:ss");
string result = DateTime.ParseExact(inputstring, "ddMMyyyyHHmmss").ToString("yyyy-MM-dd HH:mm:ss");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)