How to convert a string to a timespan in C#.net?I have a string which I want to convert toa time span object
string sDuration = "00:18:09";
Now I want to assign this value to a time span object.
TImeSpan ts = new TimeSpan();
ts = (TimeSpan)sDuration;
but this type cast is not working.