You are viewing a single comment's thread. Return to all comments →
In c#, whe can do it even shorter:
static void ConvertTime(string time) { DateTime dateTime = DateTime.ParseExact(time, "hh:mm:sstt", System.Globalization.CultureInfo.InvariantCulture); Console.WriteLine(dateTime.ToString("HH:mm:ss")); }
Seems like cookies are disabled on this browser, please enable them to open this website
Time Conversion
You are viewing a single comment's thread. Return to all comments →
In c#, whe can do it even shorter: