/** * Parse the given string in ISO 8601 format and build a Date object. * * @param input the date in ISO 8601 format * @return a Date instance * @throws InvalidDateException if the date is not valid */ public Date parse(final String input) throws InvalidDateException { if(StringUtils.isBlank(input)) { throw new InvalidDateException(); } return this.getCalendar(input).getTime(); } }