Converting a string to a TimeSpan

  • Thread starter Thread starter Doug
  • Start date Start date
D

Doug

Hi,

I was wondering if someone could tell me how i can convert a value that's a
string into a TimeSpan?

Thanks,
Doug
 
Hello

TimeSpan myTimeSpan = TimeSpan.Parse(myString);

Best regards,
Sherif
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top