public static java.sql.Timestamp toTimestamp(String monthStr,String dayStr,String yearStr,String hourStr,String minuteStr,String secondStr){
  java.util.Date newDate=toDate(monthStr,dayStr,yearStr,hourStr,minuteStr,secondStr);
  if (newDate != null) {
    return new java.sql.Timestamp(newDate.getTime());
  }
 else {
    return null;
  }
}

public static java . sql . Timestamp toTimestamp ( String monthStr , String dayStr , String yearStr , String hourStr , String minuteStr , String secondStr ) { java . util . Date newDate = toDate ( monthStr , dayStr , yearStr , hourStr , minuteStr , secondStr ) ; if ( newDate != null ) { return new java . sql . Timestamp ( newDate . getTime ( ) ) ; } else { return null ; } }
makes a timestamp from separate strings for month , day , year , hour , minute , and second .
