Re: [Zope] Month number as string as variable
1 Aug
2000
1 Aug
'00
2:14 p.m.
Peter, Try this bit of mojo here: <dtml-let monthnr="_.DateTime().mm()"> <dtml-let monthPoll="'month_'+monthnr"> <dtml-var monthPoll> </dtml-let> </dtml-let> --Aaron
22 Aug
22 Aug
12:38 p.m.
New subject: [Zope] Month number as string as variable
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
9358
Age (days ago)
9379
Last active (days ago)
1 comments
2 participants
participants (2)
-
Tino Wildenhain -
Williamson, Aaron