this question has answer here:
- convert java string sql.timestamp 5 answers
- cast string sql time 3 answers
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
Post a Comment