code: public synchronized static String formatDate(final java.util.Date object, String pattern) {
  		if (pattern == null || pattern.equals("")) {
  			pattern = JKFormatUtil.DEFAULT_DATE_PATTERN;
  		}
  		return JKFormatUtil.getDateFormatter(pattern).format(object);
  	}
docs: Format date.
  
  @param object  the object
  @param pattern the pattern
  @return the string