class DateUtil {

  public static LocalDate parseLocalDate(String timestamp) {
    if (timestamp != null) {
      for (DateTimeFormatter formatter : DateUtil.formatters) {
        try {
          return formatter.parseLocalDate(timestamp);
        } catch (IllegalArgumentException e) {
          // Silently skips to the next formatter.
        }
      }
    }
    return null;
  }

  private  DateUtil();

}