docs: public static boolean validateDateFormat(String date, Locale locale) {
          SimpleDateFormat df;
          SimpleDateFormat sdf;
          java.text.ParsePosition pos;
          java.util.Date dbDate;
  
          dbDate = null;
          try {
              if (date == null || date.equals("")) {
                  return false;
              }
  
              df = (SimpleDateFormat) DateFormat.getDateInstance(
                      dateStyle,
                      locale
              );
  
              sdf = new SimpleDateFormat(df.toPattern());
              pos = new java.text.ParsePosition(0);
              sdf.setLenient(false);
              dbDate = sdf.parse(date, pos);
  
              return dbDate != null && dbDate.getTime() > 0L;
  
          } catch (Exception e) {
              return false;
          }
      }