Java Utililty Methods SQL Time Parse

List of utility methods to do SQL Time Parse

Description

The list of methods to do SQL Time Parse are organized into topic(s).

Method

DateStringToTime(String strDate)
String To Time
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
Date date = sdf.parse(strDate);
return new java.sql.Date(date.getTime());
TimestringToTime(String timeString)
Returns the Time value of a time string.
DateFormat df = new SimpleDateFormat(TIME_FORMAT);
return new Time(df.parse(timeString).getTime());