[Zope] dates in dtml

Alejandro Fernandez ale@e-group.org
Wed, 31 Jul 2002 10:47:43 +0200


Hi

I'm trying to convert a date that's extracted from a database into a date
accepted by zope. Then I'm setting this in a variable using REQUEST.set so
I can compare it to other dates. I always get errors with this and it's
not clear how I should be doing it. I resorted to using dtml-let in order
to split things up a bit, and avoid 

 <dtml-call "REQUEST.set('first_date',
 oldest(item=_.DateTime(_.getitem('START_TIME')).aCommon(),
 old=_.getitem('START_TIME'))">

Which is really long and hard to understand. Is there any documentation
where anyone explains how to use _. functions within dtml, or how zope can
compare dates?

Thanks

Ale
-- 
Alejandro Fernandez
Electronic Group Interactive
--+34-65-232-8086-+34-93-600-2338--