code: public synchronized static String convertToAgmipDateString(Date date) {
          if (date != null) {
              return dateFormatter.format(date);
          } else {
              return null;
          }
      }
docs: Convert from {@code Date} to AgMIP standard date string (YYYYMMDD)
  
  @param date {@link Date} object
  
  @return an AgMIP standard date string representation of {@code date}.