thymeleaf获取当前时间并格式化输出

[[${#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd hh:mm:ss')}]]

<p th:text="${new java.util.Date().getTime()}"></p>

相关文章: