[Zope] Interbase and Date datatype

Brad Clements bkc@murkworks.com
Fri, 13 Jul 2001 10:11:36 -0400


On 13 Jul 2001, at 12:33, Michael Schulz wrote:

> i am using zope2.3.1, python 1.5.2 and interbase adapter gvibda096.
> 
> I am accessing an interbase DATE type column via a zsql-method and want to
> reformat the returned date (yyyy/mm/dd), but i can't figure out how? I
> tried without success:
> 
> 
> 1.) <dtml-var "_.DateTime(_['gueltig_von'])"></td>
> Error: AttributeError


<dtml-var "_.DateTime(_['gueltig_von'].tuple())" fmt="%Y/%m/%d"



The .tuple() method of a Date or DateTime object returns a tuple.