| Line 11... |
Line 11... |
| 11 |
|
11 |
|
| 12 |
private static Locale indianLocale = new Locale("en", "IN");
|
12 |
private static Locale indianLocale = new Locale("en", "IN");
|
| 13 |
private static DecimalFormat f = new DecimalFormat("##.00");
|
13 |
private static DecimalFormat f = new DecimalFormat("##.00");
|
| 14 |
private NumberFormat currencyFormat;
|
14 |
private NumberFormat currencyFormat;
|
| 15 |
private static DateTimeFormatter dateFormatter = DateTimeFormatter.ofPattern("dd-MM-yyyy");
|
15 |
private static DateTimeFormatter dateFormatter = DateTimeFormatter.ofPattern("dd-MM-yyyy");
|
| - |
|
16 |
private static DateTimeFormatter dateMonthFormatter = DateTimeFormatter.ofPattern("MMM-dd");
|
| 16 |
private static DateTimeFormatter reporticoFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
17 |
private static DateTimeFormatter reporticoFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
| 17 |
private static DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("dd-MM-yyyy HH:mm");
|
18 |
private static DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("dd-MM-yyyy HH:mm");
|
| 18 |
private static DateTimeFormatter ymFormatter = DateTimeFormatter.ofPattern("yyyyMM");
|
19 |
private static DateTimeFormatter ymFormatter = DateTimeFormatter.ofPattern("yyyyMM");
|
| 19 |
private static DateTimeFormatter monYYYYFormatter = DateTimeFormatter.ofPattern("MMM, yyyy");
|
20 |
private static DateTimeFormatter monYYYYFormatter = DateTimeFormatter.ofPattern("MMM, yyyy");
|
| 20 |
|
21 |
|
| Line 52... |
Line 53... |
| 52 |
return f.format(number);
|
53 |
return f.format(number);
|
| 53 |
}
|
54 |
}
|
| 54 |
public static String formatDate(LocalDateTime dateTime) {
|
55 |
public static String formatDate(LocalDateTime dateTime) {
|
| 55 |
return dateTime.format(dateFormatter);
|
56 |
return dateTime.format(dateFormatter);
|
| 56 |
}
|
57 |
}
|
| - |
|
58 |
public static String formatDateMonth(LocalDateTime dateTime) {
|
| - |
|
59 |
return dateTime.format(dateMonthFormatter);
|
| - |
|
60 |
}
|
| 57 |
|
61 |
|
| 58 |
public static String formatReporitcoDate(LocalDateTime dateTime) {
|
62 |
public static String formatReporitcoDate(LocalDateTime dateTime) {
|
| 59 |
if(dateTime==null) return "-";
|
63 |
if(dateTime==null) return "-";
|
| 60 |
return dateTime.format(reporticoFormatter);
|
64 |
return dateTime.format(reporticoFormatter);
|
| 61 |
}
|
65 |
}
|