|
|
|
|
@ -13,7 +13,7 @@ public class DateFormats {
|
|
|
|
|
return dateFormats.computeIfAbsent(pattern, key -> new SimpleDateFormat(key));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String format(String pattern, Date date) {
|
|
|
|
|
public String format(String pattern, Object date) {
|
|
|
|
|
if (date == null) return "";
|
|
|
|
|
return dateFormat(pattern).format(date);
|
|
|
|
|
}
|
|
|
|
|
|