Formatting date in Thymeleaf

前端 未结 5 1292
伪装坚强ぢ
伪装坚强ぢ 2020-12-04 23:22

I\'m brand new to Java/Spring/Thymeleaf so please bear with my current level of understanding. I did review this similar question, but wasn\'t able to solve my problem.

5条回答
  •  -上瘾入骨i
    2020-12-05 00:12

    If you want show por example = 20-11-2017

    You can use:

     th:text="${#temporals.format(notice.date,'dd-MM-yyyy')}
    

提交回复
热议问题