HOW to get the value of the date field? for comparison purposes

Author Message

John Mina

Sunday 21 March 2004 1:19:46 am

I have a custom class
it has a date field named day
I need to fecth from the data base according to that day

IN other words i am in need to compare tha value of the date field from the database to today's date

HOW to get the value of the date field?
i knwo how to print it out using "{attribute_view_gui attribute=$node.object.data_map.day}" but that doesn't work when i need to compare it with any value
Can you please help ?

John Mina

Sunday 21 March 2004 2:04:33 am

sorry for botehring you
but i foudn ti
{$node.data_map.day.data_int|datetime(custom,"%m-%d")}
and store the current date in a variable usiong the same way and go on comparisoning,
sincerely

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