[Zope] Date comparison problem

Jeff Nielsen jeffniel@ix.netcom.com
Thu, 4 Feb 1999 22:45:49 -0800


I'm trying to build an if statement by comparing two date values (BeginDate,
EndDate)retrieved from a SQL query. If the two dates are equal, I just want
to output the date once otherwise, I want to output both dates. I can't
figure out how to do this. I have the following chunk of code, but it always
evaluates false, even if the two dates are the same.

<!--#if equal(BeginDate,EndDate)-->
<!--#var BeginDate fmt=day-->&nbsp;<!--#var BeginDate fmt=Month-->....
[deleted]
<!--#else-->
<!--#var BeginDate fmt=day-->&nbsp;<!--#var BeginDate fmt=Month-->....
[deleted]
<!--#/if-->

Any help is appreciated.

Jeff
jeffniel@ix.netcom.com