Hi,

I'm trying to use the <c:if> tag to determine if one date is before or after
another.  My code is at the bottom of this email.

fixture.kickoffDate returns a java.util.Date object.  Can I use .time to get
me a long?

I realise that I can't put the System.currentTimeMillis code in, but how can
I get the
current system time in to a scripting variable??


<table>
        <tr>
        <c:if test="${fixture.kickoffDate.time < System.currentTimeMillis}" >
                <td> Kick off is less than system time </td>
        </c:if>
        <c:if test="${fixture.kickoffDate.time > System.currentTimeMillis}" >
                <td> Kick off is greater than system time </td>
        </c:if>
        </tr>
</table>

Using Tomcat 4.1.18 and JSTL 1.0


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to