How can I change the format date in html about spring boot?

Viewed 19

I work to generate pdf to html so i take valeur about database spring boot and i want to show this variable in html

  @DateTimeFormat(pattern = "dd/MM/yyyy")
private LocalDate dateReunion;

@DateTimeFormat(pattern = "MM/yyyy")
private LocalDate dateFin;

He got me data like this 2022-09-11 but me i want like this 11-9-2022

<p>&nbsp;&nbsp;&nbsp; Le   &nbsp; ${produitPDF.dateReunion}</p>
0 Answers
Related