Thymeleaf模板时间格式表达式     ${#dates.format(date, 'dd/MMM/yyyy HH:mm')}

例如:

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
<input name="enroDate" readonly type='text' class="form-control" th:value="${#dates.format(userInfo.enroDate,'yyyy-MM-dd')}"/>

 

<span th:text="${#dates.format(billingForm.startTime,'yyyy-MM-dd HH:mm:ss')}">123</span>

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄