Anyone know how to convert from string to time?
-
Anyone know how to convert from string to time? I have a dropdown list that contain a list of time. When I retrieve the value selected by user, but the problem is the value return from the dropdown list is in text/string. How can I convert it to time? Thank you very very much in advance for reply my question.
-
Anyone know how to convert from string to time? I have a dropdown list that contain a list of time. When I retrieve the value selected by user, but the problem is the value return from the dropdown list is in text/string. How can I convert it to time? Thank you very very much in advance for reply my question.
Depends on the format but you could try:
Convert.ToDateTime(myString)
-
Depends on the format but you could try:
Convert.ToDateTime(myString)
-
So what are you trying to tell me with this? :confused: The question was how to convert string to time and not time to string like you did.
-
So what are you trying to tell me with this? :confused: The question was how to convert string to time and not time to string like you did.
-
Anyone know how to convert from string to time? I have a dropdown list that contain a list of time. When I retrieve the value selected by user, but the problem is the value return from the dropdown list is in text/string. How can I convert it to time? Thank you very very much in advance for reply my question.