| Line 29... |
Line 29... |
| 29 |
private static final DateTimeFormatter ddMMMyyyyHypenatedFormatter = DateTimeFormatter.ofPattern("dd-MMM-yyyy");
|
29 |
private static final DateTimeFormatter ddMMMyyyyHypenatedFormatter = DateTimeFormatter.ofPattern("dd-MMM-yyyy");
|
| 30 |
private static final DateTimeFormatter dateMonthFormatter = DateTimeFormatter.ofPattern("MMM-dd");
|
30 |
private static final DateTimeFormatter dateMonthFormatter = DateTimeFormatter.ofPattern("MMM-dd");
|
| 31 |
private static final DateTimeFormatter reporticoFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
31 |
private static final DateTimeFormatter reporticoFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
| 32 |
private static final DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("dd-MM-yyyy HH:mm:ss");
|
32 |
private static final DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("dd-MM-yyyy HH:mm:ss");
|
| 33 |
private static final DateTimeFormatter ymFormatter = DateTimeFormatter.ofPattern("yyyyMM");
|
33 |
private static final DateTimeFormatter ymFormatter = DateTimeFormatter.ofPattern("yyyyMM");
|
| - |
|
34 |
private static final DateTimeFormatter ymdFormatter = DateTimeFormatter.ofPattern("yyyyMMdd");
|
| 34 |
private static final DateTimeFormatter monYYYYFormatter = DateTimeFormatter.ofPattern("MMM, yyyy");
|
35 |
private static final DateTimeFormatter monYYYYFormatter = DateTimeFormatter.ofPattern("MMM, yyyy");
|
| 35 |
private static DateTimeFormatter yyMMDDTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm");
|
36 |
private static DateTimeFormatter yyMMDDTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm");
|
| 36 |
|
37 |
|
| 37 |
public static String getYearMonth(LocalDateTime dateTime) {
|
38 |
public static String getYearMonth(LocalDateTime dateTime) {
|
| 38 |
return dateTime.format(ymFormatter);
|
39 |
return dateTime.format(ymFormatter);
|
| Line 41... |
Line 42... |
| 41 |
|
42 |
|
| 42 |
public static String formatYearMonth(LocalDateTime dateTime) {
|
43 |
public static String formatYearMonth(LocalDateTime dateTime) {
|
| 43 |
return dateTime.format(monYYYYFormatter);
|
44 |
return dateTime.format(monYYYYFormatter);
|
| 44 |
}
|
45 |
}
|
| 45 |
|
46 |
|
| - |
|
47 |
public static String formatToYMD(LocalDateTime dateTime) {
|
| - |
|
48 |
return dateTime.format(ymdFormatter);
|
| - |
|
49 |
}
|
| - |
|
50 |
|
| 46 |
public static String formatDecimal(double number) {
|
51 |
public static String formatDecimal(double number) {
|
| 47 |
return numberFormatter.format(number).replace(".00", "");
|
52 |
return numberFormatter.format(number).replace(".00", "");
|
| 48 |
}
|
53 |
}
|
| 49 |
|
54 |
|
| 50 |
public static String formatDecimal(float number) {
|
55 |
public static String formatDecimal(float number) {
|