public static java.util.Date toDate(Timestamp timestamp){
  if (timestamp == null) {
    return null;
  }
  long milliseconds=timestamp.getTime() + (timestamp.getNanos() / 1000000);
  return new Date(milliseconds);
}

public static java . util . Date toDate ( Timestamp timestamp ) { if ( timestamp == null ) { return null ; } long milliseconds = timestamp . getTime ( ) + ( timestamp . getNanos ( ) / 1000000 ) ; return new Date ( milliseconds ) ; }
scipio : converts a timestamp into a date
