<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<jsp:useBean id="myDate" class="java.util.Date"/>
<%--开始时间--%>
<c:choose>
<c:when test = "${row.start_time != '' and row.start_time != null}"> <%--判断是否为空--%>
<c:set target="${myDate}" property="time" value="${row.start_time}"/>
<td><fmt:formatDate value="${myDate}" type="both" /></td> <%--转换--%>
</c:when>
<c:otherwise>
<td></td>
</c:otherwise>
</c:choose>
<%--结束时间--%>
<c:choose>
<c:when test = "${row.finish_time != '' and row.finish_time != null}">
<c:set target="${myDate}" property="time" value="${row.finish_time}"/>
<td><fmt:formatDate value="${myDate}" type="both" pattern="yyyy-MM-dd"/></td>
</c:when>
<c:otherwise>
<td></td>
</c:otherwise>
</c:choose>
<jsp:useBean id="myDate" class="java.util.Date"/>
<%--开始时间--%>
<c:choose>
<c:when test = "${row.start_time != '' and row.start_time != null}"> <%--判断是否为空--%>
<c:set target="${myDate}" property="time" value="${row.start_time}"/>
<td><fmt:formatDate value="${myDate}" type="both" /></td> <%--转换--%>
</c:when>
<c:otherwise>
<td></td>
</c:otherwise>
</c:choose>
<%--结束时间--%>
<c:choose>
<c:when test = "${row.finish_time != '' and row.finish_time != null}">
<c:set target="${myDate}" property="time" value="${row.finish_time}"/>
<td><fmt:formatDate value="${myDate}" type="both" pattern="yyyy-MM-dd"/></td>
</c:when>
<c:otherwise>
<td></td>
</c:otherwise>
</c:choose>