- Original Message -
From: Andy Gates [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 06, 2000 4:06 PM
Subject: [Zope] Newbie: Date checking?
A quicky for you Zopistas: I have some dates in a database, which
govern when a story becomes live and when it expires. I need
Message-ID: [EMAIL PROTECTED]
Priority: NORMAL
X-Mailer: Execmail for Win32 5.1 Build (9)
MIME-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
dtml-if "_.DateTime(startdate).isPast() and _.DateTime(expirydate).isFuture()"
...
/dtml-if
I'll work it out one day, honest. Ta.
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