Hi Guys
I have this code where I check if the data is null before doing date formatting. In addition I also need to check if the length is greater than 0. Would yoou guys know how I can do that
<c:choose><c:when test="${fn:trim(current) != 'null'}">
<c:set var="invoiceDate" value="${fn:trim(current)}
" />
<fmt:parseDate var="parsedInvoiceDate" value="${invoiceDate}" pattern="yyyy-MM-dd HH:mm:ss.SSS" />
<fmt:formatDate value="${parsedInvoiceDate
}" pattern="MM/dd/yyyy" />
</c:when> <c:otherwise>
<c:out value="${current}" />
</c:otherwise> </c:choose>
Thanks
Start Free Trial