I am trying to convert date from this format "dd/MMM/yyyy" to "yyyyMMdd", for Java 1.8 version ,the code was working fine, my code is
SimpleDateFormat inputFormat = new SimpleDateFormat(currentFormat);
SimpleDateFormat outputFormat = new SimpleDateFormat(newFormat);
Date date = inputFormat.parse(dateStr);
return outputFormat.format(date);
when i changed from Java 8 to java 17 , I am getting parse Exception. Please help, thanks