I have read a few good posts like this one which explain the method of receiving ordinal numbers when given an int
.
Now, I have a LocalDate object and I can format my dates using any of the DateTimeFormat
patterns in my Thymeleaf template. Example being something like:
<strong th:text="${item.date} ? ${#temporals.format(item.date, 'dd')}"></strong>
Question: How can I or perhaps what is the best way of achieving similar results to the post I linked to above in Thymeleaf.
I am not an experienced Java developer so it would be very helpful if you be as thorough as you possibly can with explaining the answer.