I have a string list holding time values in this format: 11:25:46.123
, I would like to be able to find highest and lowest time value from this list. How can I do it?
I tried something like this, but I am not sure if it is correct and I don't know what to do next.
List<TimeSpan> time = StringList.Select(x => TimeSpan.ParseExact(x, "HH:mm:ss.fff", null)).ToList();
EDIT: I am getting error:
Input string was not in a correct format.