+ private static SimpleDateFormat ledgerDateFormatter = new SimpleDateFormat("y/M/d", Locale.US);
+ public static Date parseLedgerDate(String dateString) {
+ try {
+ return ledgerDateFormatter.parse(dateString);
+ }
+ catch (ParseException e) {
+ throw new RuntimeException(String.format("Error parsing date '%s'", dateString), e);
+ }
+ }
+ public static String formatLedgerDate(Date date) {
+ return ledgerDateFormatter.format(date);
+ }