[Zope] Newbie: Date checking?
Andy Gates
Andy.Gates@bristol.ac.uk
Thu, 6 Jul 2000 15:06:38 +0100
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 to do a
test along the lines of:
dtml-in stories
if (startdate is past) and (expirydate is future)
show the story
/if
/in
I have seen the fmt parameters isPast and isFuture and this gives me a
true/false response: <dtml-var startdate fmt=isPast> but how do I use
that in an if test? I keep (as usual) getting syntax errors. Help!
----------------------
Andy Gates, Learning and Research Technology
Andy.Gates@bristol.ac.uk - ICQ#74362415