how to convert a string into java.sql.time -


this question has answer here:

how can convert string value java.sql.time?

i have scenario in user gives input time value string.

for example: 10 pm

i have store value in database time stamp. 1 please me solving problem. want write getter , setter scenario.

try this

    string t = "10:34:34";     time time = time.valueof(t);     system.out.println(time); 

its working.


Comments