I've seen some posts about date comparisons in JSTL, but I still can't get it to work.
I have a date field, which I want to test whether is after 01-01-1970
.
<c:if test="${user.BirthDate > whatGoesHere}">
<doSomeLogic/>
</c:if>
Maybe a bean should be used?
Thanks !
U can use jstl and usebean something like this
<jsp:useBean id="now" class="java.util.Date"/>
<c:if test="${someEvent.startDate lt now}">
It's history!</c:if>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With