code: public synchronized static Date convertFromAgmipDateString(String agmipDate) {
          try {
              return dateFormatter.parse(agmipDate);
          } catch (Exception ex) {
              return null;
          }
      }
docs: Convert from AgMIP standard date string (YYYYMMDD) to a {@code Date}
  
  @param agmipDate AgMIP standard date string
  
  @return {@code Date} represented by the AgMIP date string or {@code null}