[Zope] Need help with date comparisons

2000-10-16 Thread Jonathan Cheyne
Hi all again. I have a blank in my mind where I hoped the answer might be to this probably straightforward exercise. I have a zclass containing a date property called event_date. I want a page that loops through the months of the year, starting with the current month, and in each loop displays

Re: [Zope] Need help with date comparisons

2000-10-16 Thread Jason Spisak
Jonathan: You can try: dtml-in "['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']" dtml-if "event_date.Month() == _['sequence-item']" dtml-var event_date /dtml-if /dtml-in The source for