return dateFormatter.get().parse(toParse);
}
+ public static Calendar parseLedgerDateAsCalendar(String dateString) throws ParseException {
+ Date date = parseLedgerDate(dateString);
+ Calendar calendar = Calendar.getInstance();
+ calendar.setTime(date);
+ return calendar;
+ }
public static Date parseIsoDate(String dateString) throws ParseException {
return isoDateFormatter.get().parse(dateString);
}
public static String formatLedgerDate(Date date) {
return dateFormatter.get().format(date);
}
+ public static String formatIsoDate(Date date) {
+ return isoDateFormatter.get().format(date);
+ }
}
\ No newline at end of file