|
|
@@ -132,6 +132,12 @@ public final class DateUtil {
|
|
|
return formatter.format(localDateTime);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ public static String formatLocalTime(LocalTime time){
|
|
|
+ DateTimeFormatter formatter = DateTimeFormatter.ofPattern("HH:mm");
|
|
|
+ return formatter.format(time);
|
|
|
+ }
|
|
|
+
|
|
|
public static String formatLocalDate(LocalDate localDate, String pattern){
|
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern(pattern);
|
|
|
return formatter.format(localDate);
|