@Override public String format(Date date) throws UnifyException { return getSimpleDateFormatPool().format(date); }
@Override public String format(String pattern, Date date) throws UnifyException { return simpleDateFormatPoolMap.get(pattern).format(date); }
/** * Formats a date using default locale and supplied date pattern. * * @param format * the date pattern * @param date * the date to format * @return the formatted date * @throws UnifyException * if an error occurs */ public static String format(String format, Date date) throws UnifyException { return simpleDateFormatPoolMap.get(Locale.getDefault(), format).format(date); }