Thymeleaf parse preprocessing String to date and format it
问题 I have Model Attribute contains a list of properties the value which I want to format is similar to this String 2012-07-16T00:00:00 I try to use <p th:text="${#temporals.format(${myData.mdProperties.get('completionDate')}, 'dd-MM-yyyy')}"></p> the parsing keep failing then I thought I should convert String to date using custom dialect but it complicated is there any simpler solution even I try to convert the string to date is based on this question but it failed <p th:text="${#temporals