Date 2022-02-02 (yyyy-dd-MM) to 02-Feb-2022 in Java
need help in converting Date 2022-02-02 to format 02-Feb-2022
CodePudding user response:
LocalDate.parse("2022-02-02", DateTimeFormatter.ofPattern("yyyy-dd-MM")).format(DateTimeFormatter.ofPattern("dd-MMM-yyyy"));