class DateUtil {

    public static String format(Date date, String pattern) {
        if (date == null) {
            return "";
        }
        // TODO 芋艿，后面改成缓存
        return new SimpleDateFormat(pattern).format(date);
    }

}