Compare two dates in a loop

Author Message

Patrice DUCLAUD

Monday 02 May 2005 8:48:48 am

How to compare two dates ? i'd like to do something with an object when his attribute (date) is greater than today, but i don't really know the right syntax

something like that :


{let Result=fetch('content','list',
            hash('parent_node_id,$node.node_id')}  
{section loop=$:Result 
         show=le(currentdate(),
   $:item.object.data_map.date_attribute.data_int)}
       ... some code ...
{/section}     
{/let}

Thank for any solution

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.