[Zope] PLEASE PLEASE HELP!! Using an <dtml-if x>=y> statement with dates

Dennis Allison allison at sumeru.stanford.EDU
Sun Nov 16 12:00:32 EST 2003


Read The Zope Book about DateTime objects.  You need to do your comparison 
in the DateTime object space.

On Sun, 16 Nov 2003 info at grabthebasics.com wrote:

> 
> I am trying to include only those dates that are before a certain date. However, if the first one is before, all of the dates are included which is not correct. I will then build this on, so that only dates that are between a certain range are included. 
> The code that i am using, is:
> (obviously StartingDate is a variable that is being defined each time in DZEvent)
> 
> <dtml-with ItineraryEvents>
> <dtml-in expr="objectValues('DZEvent')" sort=StartingDate>
> <dtml-let divider="'2004/01/12'" start=StartingDate>
> <dtml-if " divider>start">
> <dtml-let start=StartingDate>
> The Date is: <dtml-var StartingDate>
> </dtml-let>
> </dtml-if>
> </dtml-let>
> </dtml-in>
> </dtml-with> 
> 
> Any help on or off list greatly appreciated,
> 
> Tom




More information about the Zope mailing list