| Line 26... |
Line 26... |
| 26 |
private static final DateTimeFormatter dateMonthFormatter = DateTimeFormatter.ofPattern("MMM-dd");
|
26 |
private static final DateTimeFormatter dateMonthFormatter = DateTimeFormatter.ofPattern("MMM-dd");
|
| 27 |
private static final DateTimeFormatter reporticoFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
27 |
private static final DateTimeFormatter reporticoFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
| 28 |
private static final DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("dd-MM-yyyy HH:mm:ss");
|
28 |
private static final DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("dd-MM-yyyy HH:mm:ss");
|
| 29 |
private static final DateTimeFormatter ymFormatter = DateTimeFormatter.ofPattern("yyyyMM");
|
29 |
private static final DateTimeFormatter ymFormatter = DateTimeFormatter.ofPattern("yyyyMM");
|
| 30 |
private static final DateTimeFormatter monYYYYFormatter = DateTimeFormatter.ofPattern("MMM, yyyy");
|
30 |
private static final DateTimeFormatter monYYYYFormatter = DateTimeFormatter.ofPattern("MMM, yyyy");
|
| - |
|
31 |
private static DateTimeFormatter yyMMDDTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm");
|
| 31 |
|
32 |
|
| 32 |
public static String getYearMonth(LocalDateTime dateTime) {
|
33 |
public static String getYearMonth(LocalDateTime dateTime) {
|
| 33 |
return dateTime.format(ymFormatter);
|
34 |
return dateTime.format(ymFormatter);
|
| 34 |
}
|
35 |
}
|
| 35 |
|
36 |
|
| Line 92... |
Line 93... |
| 92 |
|
93 |
|
| 93 |
public static String formatReporitcoDate(LocalDateTime dateTime) {
|
94 |
public static String formatReporitcoDate(LocalDateTime dateTime) {
|
| 94 |
if (dateTime == null) return "-";
|
95 |
if (dateTime == null) return "-";
|
| 95 |
return dateTime.format(reporticoFormatter);
|
96 |
return dateTime.format(reporticoFormatter);
|
| 96 |
}
|
97 |
}
|
| - |
|
98 |
|
| - |
|
99 |
public static String formatDateTime(LocalDateTime dateTime) {
|
| - |
|
100 |
if (dateTime == null)
|
| - |
|
101 |
return "-";
|
| - |
|
102 |
return dateTime.format(yyMMDDTimeFormatter);
|
| - |
|
103 |
}
|
| 97 |
}
|
104 |
}
|