public static java.sql.Timestamp toTimestamp(String date,String time){
  java.util.Date newDate=toDate(date,time);
  if (newDate != null) {
    return new java.sql.Timestamp(newDate.getTime());
  }
 else {
    return null;
  }
}

public static java . sql . Timestamp toTimestamp ( String date , String time ) { java . util . Date newDate = toDate ( date , time ) ; if ( newDate != null ) { return new java . sql . Timestamp ( newDate . getTime ( ) ) ; } else { return null ; } }
converts a date string and a time string into a timestamp
