I’m using .NET framework v 3.5 and i need to parse a string representing a timespan into TimeSpan object.
The problem is that dot separator is used instead of colon… For example 13.00, or 22.30
So I’m wondering if I have to replace . with : or there is a more clean way to obtain this.
Parse out the
DateTimeand use itsTimeOfDayproperty which is aTimeSpanstructure: