Converting a string into TimeSpan

deannacoyote

New Member
I have been playing around with the Google Distance Matrix API, so far I've been able to get duration strings in the following format\[code\] string a = "1 days 5 hours"; string b = "18 hours 10 minutes"; string c = "29 minutes";etc..\[/code\]My question is how could I add all these strings together into a single \[code\]TimeSpan\[/code\] variable?
 
Top