DateTime dt; string result; if (DateTime.TryParse("2015-06-26T00:00:00", out dt)) result = dt.ToString("MM/dd/yyyy"); else // The input was invalid - handle it.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)