Tutorial by Examples

<p> Today: <span th:text="${#calendars.format(today,'dd MMMM yyyy')}">30 May 2017</span> </p>
<div th:if="*{userMessage!=null and #strings.length(userMessage)>0}"> <label th:text = "*{userMessage}"/> </div>
<div th:if="${#strings.contains(#httpServletRequest.requestURI, 'email')}"> <div th:replace="fragments/email::welcome"> </div>
Get year from date <p> Year: <span th:text="${#dates.year(today)}">2017</span> </p> Get month <p> Month number: <span th:text="${#dates.month(today)}">8</span> Month: <span th:text="${#dates.monthName(today)}"&...
<p> Order sum: <span th:text="${#numbers.formatDecimal(orderSum, 0, 'COMMA', 2, 'POINT')}">1,145,000.52</span> </p>

Page 1 of 1