code: public static String formatDate(final Date date, final String pattren) {
  		final SimpleDateFormat formatter = new SimpleDateFormat(pattren, new Locale("en", "US"));
  		if (date == null) {
  			return "";
  		}
  		return formatter.format(date);
  	}
docs: Format date.
  
  @param date    the date
  @param pattren the pattren
  @return the string