[Zope-dev] Equating dates

Pavlos Christoforou pavlos@gaaros.msrc.sunysb.edu
Tue, 11 May 1999 13:20:33 -0400 (EDT)


> Zopists:
> 
> 
> <!--#if "date==appointment_date"-->
> <!--#var foo-->
> <!--#/if-->
> 

If date refers to 'now' you can do

<!--#if "appointment_date.isCurrentHour()"-->
<!--# var spam-->
<!--# /if-->

If you want to compare two arbitrary datetime objects to the day
then:

<!--#if "appointment_date.dayOfYear()==date.dayOfYear()"-->
<!--# var spam-->
<!--# /if-->

both untested

Pavlos