> <dtml-if "_.DateTime(startdate).isPast() and _.DateTime(expirydate).isFuture()"> > ... > ... > </dtml-if> This gives: Error Type: TypeError Error Value: __div__ nor __rdiv__ defined for these operands The dates are pulled from an access (!) database where they are defined as date/time types. Me confoosed. Andy