in c# i have time in format hhmmss like 124510 for 12:45:10 and i need to know the the TotalSeconds. i used the TimeSpan.Parse(\"12:45:10\").ToTalSeconds but it does\'nt tak
If you can guarantee that the string will always be hhmmss, you could do something like:
TimeSpan.Parse( timeString.SubString(0, 2) + ":" + timeString.Substring(2, 2) + ":" + timeString.Substring(4, 2)))