I\'m using .NET framework v 3.5 and i need to parse a string representing a timespan into TimeSpan object.
TimeSpan
The problem is that
string YourString = "01.35"; var hours = Int32.Parse(YourString.Split('.')[0]); var minutes = Int32.Parse(YourString.Split('.')[1]); var ts = new TimeSpan(hours, minutes, 0);