[Zope] handling date properties in <dtml-if>

seb sebbacon@email.com
Sun, 01 Oct 2000 13:48:50 +0100


Hi,

> ... I want to display only those jobs
> for which the current date is on or after the 'date_posted' and on or
> before 'offer_expires'. I've tried a bunch of things, but haven't hit upon
> the winning answer. Any takers?

Try

<dtml-in "objectValues('Jobs')" sort="date_posted">
  <dtml-if "offer_expires.isFuture()">
    <dtml-if "date_posted.isPast()">
      Job: <dtml-var title> <br>
    </dtml-if>
  </dtml-if>
</dtml-in>

Seb.