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 = "9:30 AM";

Related posts

Recent Viewed