I have a text box that is updated through a javascript so that it displays the current time on the page and is updated every second. When a user clicks a button I want to read that textbox value to get the current time and convert it to a DateTime. I capture
the textbox value without any issue and then attempt to do a DateTime diTime = Convert.ToDateTime(textbox1.Text). This command works perfectly in Firefox and Chrome and had worked in IE a while back but after updating to a newer version of IE this process
no results in an error "String was not recognized as a valid DateTime." I have tried doing this with DateTime.Parse() and DateTime.ParseExact() but neither approach seems to help. In fact, when trying some of those options the whole process broke in the
other browsers as well.
The value in the textbox will be like "1:35:23 PM" or "11:15:10 AM" Any help would be greatly appreciated in understanding ...
Go to the complete details ...