In an attempt to turn a date with a format of \"mm/dd/yyyy hh:mm:ss PM\" into military time, the following replacement of a row value does not seem to take. Eve
\"mm/dd/yyyy hh:mm:ss PM\"
Simple way is
bool timeConversion = DateTime.TryParse(s,out DateTime time); if(timeConversion) { return time.Tostring("HH:mm:ss"); }
here be careful to write "HH"