[Zope] Getting the day from a Timestamp / gvibda

Gitte Wange gitte@mmmanager.org
Tue, 22 May 2001 15:53:07 +0200


On Tuesday 22 May 2001 15:47, Oliver Sturm wrote:
> Hi!
>
> I have a query returning a timestamp column from my interbase 6 database
> using the Going Virtual database adapter. I want to extract the values of
> the day/month/year ... from the variable. I tried this
>
> <dtml-var date_column fmt="%d">
>
> for the day, but it doesn't work, probably because the variable's type is
> not the usual python DateTime. Similarly, this
>
> <dtml-var "_.DateTime(date_column).day()">

Have you tried with:
<dtml-var "_.DateTime(date_column).strftime('%d')">

??

Gitte