解析日期
从日期开始获取年份
<p>
Year: <span th:text="${#dates.year(today)}">2017</span>
</p>
得到一个月
<p>
Month number: <span th:text="${#dates.month(today)}">8</span>
Month: <span th:text="${#dates.monthName(today)}">August</span>
Month short name: <span th:text="${#dates.monthNameShort(today)}">Aug</span>
</p>
得到一天
<p>
Day: <span th:text="${#dates.day(today)}">26</span>
</p>
获取星期几
<p>
Day: <span th:text="${#dates.dayOfWeek(today)}">1</span>
Day: <span th:text="${#dates.dayOfWeekName(today)}">Monday</span>
Day: <span th:text="${#dates.dayOfWeekNameShort(today)}">Mo</span>
</p>
腾出时间
<p>
Hour: <span th:text="${#dates.hour(today)}">10</span>
Minute: <span th:text="${#dates.minute(today)}">50</span>
Second: <span th:text="${#dates.second(today)}">48</span>
Millisecond: <span th:text="${#dates.millisecond(today)}">48</span>
<p>