復制代碼 代碼如下:
<s:set name="todayDay" value="new java.sql.Date(new java.util.Date().getTime()).toString()"/>
<s:date name="Schd_Dpt_Dt" format="yyyy-MM-dd" var="Schd_Dpt_Date"/>
<s:if test="#todayDay==#Schd_Dpt_Date">
<td class="tdys1">
<s:date name="Schd_Dpt_Dt" format="HH:mm" />
</td>
</s:if>
<s:else>
<td class="tdys1">
<s:date name="Schd_Dpt_Dt" format="dd日HH:mm" />
</td>
</s:else>