code: public static String parseDate(final String date, final String dateFormat, final String dateLocaleLang,
                                     final String dateLocaleCountry, final String outFormat, final String outLocaleLang,
                                     final String outLocaleCountry) throws Exception {
          if (StringUtils.isBlank(date)) {
              throw new RuntimeException(Constants.ErrorMessages.DATE_NULL_OR_EMPTY);
          }
          DateTimeZone timeZone = DateTimeZone.forID(Constants.Miscellaneous.GMT);
          DateTime inputDateTime = parseInputDate(date, dateFormat, dateLocaleLang, dateLocaleCountry, timeZone);
  
          return changeFormatForDateTime(inputDateTime, outFormat, outLocaleLang, outLocaleCountry);
      }
docs: This operation converts the date input value from one date/time format (specified by dateFormat)
  to another date/time format (specified by outFormat) using locale settings (language and country).
  You can use the flow "Get Current Date and Time" to check upon the default date/time format from
  the Java environment.
  
  @param date              the date to parse/convert
  @param dateFormat        the format of the input date
  @param dateLocaleLang    the locale language for input dateFormat string. It will be ignored if
  dateFormat is empty. default locale language from the Java environment
  (which is dependent on the OS locale language)
  @param dateLocaleCountry the locale country for input dateFormat string. It will be ignored
  if dateFormat is empty or dateLocaleLang is empty. Default locale country
  from the Java environment (which is dependent on the OS locale country)
  @param outFormat         The format of the output date/time. Default date/time format from the Java
  environment (which is dependent on the OS date/time format)
  @param outLocaleLang     The locale language for output string. It will be ignored if outFormat is
  empty.
  @param outLocaleCountry  The locale country for output string. It will be ignored if outFormat
  is empty or outLocaleLang is empty.
  @return The date in the new format