newbie: comparing dates?
Hi all, another newbie-question: - I created a zclass with three date properties. - Now I´d like to display the most recent of these dates in directory-listings etc. QUESTION 1: How do I compare dates in dtml code? QUESTION 2: How do I exclude empty values from processing? (I installed rapto´s null date-patch, seemed to work fine; for that patch see: http://www.zope.org/Members/rapto/nullDate?pp=1) regards, -georg.rellensmann-
Georg Rellensmann wrote:
Hi all,
another newbie-question:
- I created a zclass with three date properties.
- Now I´d like to display the most recent of these dates in directory-listings etc.
Try something like: <dtml-in "objectValues('MetaTypeOfYourZClass')" sort=your_date_property> ...your dir stuff here... </dtml-in> cheers, Chris
participants (2)
-
Chris Withers -
Georg Rellensmann