解析日期
從日期開始獲取年份
<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>