<c:set var="yesterday">
<fmt:formatDate value="<%=DateUtil.getSomeDate(-1) %>" pattern="yyyy-MM-dd" type="date"/>
</c:set>
<c:set var="currentday">
<fmt:formatDate value="<%=DateUtil.getSomeDate(0) %>" pattern="yyyy-MM-dd" type="date"/>
</c:set>
<c:set var="createDate">
<fmt:formatDate value="${noticeResult.createDate}" pattern="yyyy-MM-dd" type="date"/>
</c:set>
<c:if test="${yesterday > createDate or currentday < createDate }">
<img src="../../images/new.gif" />
</c:if>
public static Date getSomeDate(int i){
Calendar c = Calendar.getInstance();
c.add(Calendar.DATE, i);
return c.getTime();
}