[Zope] R: [Zope] Newbie: Date checking?

2000-07-06 Thread Marcel Preda
- 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

Re: [Zope] R: [Zope] Newbie: Date checking?

2000-07-06 Thread Andy Gates
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.

Re: [Zope] R: [Zope] Newbie: Date checking?

2000-07-06 Thread Andy Gates
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