protected int monthAsInteger(String monthAsString) throws ParseException { try { return Month.getMonth(monthAsString).getCalendarMonth(); } catch (IllegalArgumentException e) { try { return Integer.parseInt(monthAsString); } catch (Exception f) { throw new ParseException("Invalid Month value: '" + monthAsString + "'", 0); } } }
public Month getMonth() { return Month.getMonth(month); }