I am trying to compare dates, on a basic example and cannot work out the best way of doing it.
The below shows grabbing todays date/time and then comparing it in an IF statement. I am sure the format I have hard coded in is wrong, but when outputing the format that is the format it defaults to. So the question is how do I see if one date is lower than the other and how do I format them to date only?
<p>
<c:set var="testme" value="<%=new java.util.Date()%>"/>
<b><c:out value="${testme}"/></b>
</p>
<c:if test="${testme lt 'Tue Jan 29 16:02:58 GMT 2013'}">
<p><b><span class="wrap">Test date is less.</span></b></p>
</c:if>