hi to everyone!
i have a problem about parsing
string to time.
Here is my samplecode:
String time = request.getParameter("time");
Time tm = Time.parse(time);
but it goes error...
i tried another code like this...
String time = request.getParameter("time");
Time tm = Time.valueOf(time);
but it goes error too...
i tried also this code...
String time = request.getParameter("time");
DateFormat sdf = new SimpleDateFormat("hh:mm");
Time tm = (Time) sdf.parse(time);
it goes error too...
it says: Cannot parse Date to Time
my datatype of 'time' in database is time without time zone
what is wrong?
please help me.