Forums / Setup & design / problem with filtering by date
Lida Popelo
Saturday 09 October 2004 9:02:42 am
Hi All,
I have a class "some_class" with attribute "begin_date" of type date. In template i want to fetch instances of SomeClass where "begin_date" >= today date, so i wrote:
{let items = fetch(content, list, hash(parent_node_id, 64, attribute_filter, array( array(some_class/begin_date, '>=' currentdate())))}
But it dosen't work right :(Please help me...
Gunnstein Lye
Monday 11 October 2004 5:04:07 am
Instead of writing some_class/begin_date, you should use the attribute id of that attribute (you can see it when you view the class).