forum

Home / DeveloperSection / Forums / How to parse string contains time of day in c#?

How to parse string contains time of day in c#?

Anonymous User209410-Nov-2014

I try to cast a string to time span but i get the following exception :

Input string was not in a correct format.

My code :

rad_from_time.SelectedTime = TimeSpan.Parse(pro[0].FromTime)

pro[0].FromTime = "1:00 AM";


Updated on 11-Nov-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By