List of utility methods to do SQL Time Parse
Date | StringToTime(String strDate) String To Time SimpleDateFormat sdf = new SimpleDateFormat("HH:mm"); Date date = sdf.parse(strDate); return new java.sql.Date(date.getTime()); |
Time | stringToTime(String timeString) Returns the Time value of a time string. DateFormat df = new SimpleDateFormat(TIME_FORMAT); return new Time(df.parse(timeString).getTime()); |