[Zope] Month number as string as variable

Tino Wildenhain tino@wildenhain.de
Tue, 22 Aug 2000 14:38:26 +0200


Hi,

"Williamson, Aaron" wrote:
> 
> Peter,
> 
> Try this bit of mojo here:
> 
> <dtml-let monthnr="_.DateTime().mm()">

# actually, it schould be:

>     <dtml-let monthPoll="'month_%02d' % monthnr">

# to produce 'month_01' to 'month_12'

>       <dtml-var monthPoll>
>     </dtml-let>
> </dtml-let>

Regards
Tino Wildenhain