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
For .Net 3.5 you may use DateTime.ParseExact and use TimeOfDay property
string timestring = "12.30"; TimeSpan ts = DateTime.ParseExact( timestring, "HH.mm", CultureInfo.InvariantCulture ).TimeOfDay;