code: public synchronized static String formatTimeStamp(final Timestamp date, String pattern) {
  		if (pattern == null || pattern.equals("")) {
  			pattern = JKFormatUtil.DEFAULT_TIMESTAMP_PATTERN;
  		}
  		return JKFormatUtil.getDateFormatter(pattern).format(date);
  	}
docs: Format time stamp.
  
  @param date    the date
  @param pattern the pattern
  @return the string