I have a time that is 16:23:01. I tried using DateTime.ParseExact, but it\'s not working.
DateTime.ParseExact
Here is my code:
string Time = \"16:23:01\"; Date
string Time = "16:23:01"; DateTime date = DateTime.Parse(Time, System.Globalization.CultureInfo.CurrentCulture); string t = date.ToString("HH:mm:ss tt");