[Zope] DateTime inside an in loop

Neil Burnett neil@efc.be
Sat, 23 Jun 2001 17:51:13 +0200


I want to use DateTime on a date value returned in a ZSQLMethod.

E.g. Say the SQL for get_records() ZSQLMethod is

SELECT ID, adate FROM DateValues

I want to do something like this:

<dtml-in expr="get_records()">
<dtml-var ID>
<dtml-var expr="_.DateTime(adate).strftime('%d-%b')">
</dtml-in>

I have tried all sorts of syntax to get a result, with no result.

Question 1: Can someone tell me the correct syntax please?

Question 2: Can someone 'teach me to fish' by showing me the path to some
documentation on namespaces? I have searched and read a fair amount today
without actually getting enlightenment:-(

Thanks a lot

Neil