code: private static boolean isDate(String value) {
      try {
        new SimpleDateFormat("yyyyMMddHHmmss").parse(value);
        return true;
      } catch (ParseException e) {
        return false;
      }
    }
docs: Checks whether the specified value is a date according to the old format of the {@link CoreProperties#SERVER_ID}.