How to compare a date?
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <OFCC922BEE.2FCCB094-ONC12570A8.004BE236-C12570A8.004BE23B@generic.se> |
I have a container with a startDate and an endDate field.
I want to show the container if curent date is in between those dates.
How can I compare with current date? (System.currentTimeMillis())
I can find some java code doing by using java code (scriplet) (box_news.inc).
But how can we do this by using taglibs (jahia,jstl,struts)?
...
<content:dateField ..../>
...
<c:if test="${ ????? }">
// Show container fields...
</c:if>
...
Regards
/Lars Hagrot