Thanks can le. Thanks alotThe .NET TimeSpan structure is used to represent time and it has Parse, ParseExact, TryParse and TryParseExact methods, all of which will convert a String to a TimeSpan. You should read the MSDN documentation for each to see the differences among them and determine which is most suitable for your scenario and how to call it.