一、#dates.format()
用来格式化日期时间

${#dates.format(date, 'dd/MMM/yyyy HH:mm')}
${#dates.arrayFormat(datesArray, 'dd/MMM/yyyy HH:mm')}
${#dates.listFormat(datesList, 'dd/MMM/yyyy HH:mm')}
${#dates.setFormat(datesSet, 'dd/MMM/yyyy HH:mm')}

二、页面使用

<pth:text="${#dates.format(user.birth, 'yyyy-MM-dd HH:mm')}"></p>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2021-08-24
  • 2021-06-13
猜你喜欢
  • 2022-12-23
  • 2021-11-29
  • 2021-12-19
  • 2021-06-13
  • 2022-12-23
  • 2021-07-29
相关资源
相似解决方案