On Sat, 24 Jul 1999, Rob Page wrote:
I've been wondering how one can format with the var tag a date value as DD.MM.YYYY or DD/MM/YYYY?
Enclosed is snippet of UNSUPPORTED, NOT-IN-CVS, CAVEAT EMPTOR, YMMV code that you might be able to put in DateTime.py I do have a better solution ;) <dtml-with ZopeTime> <dtml-var %d.%m.%Y> </dtml-with>
Catches: -) the strftime is applied to UTC. -) Trying accessing the attribute differently, produces Permission bugs. So for example <dtml-var "_.getattr(ZopeTime,'%d.%m.%Y')()"> produces: Error Type: AttributeError Error Value: PrincipiaTime%d.%m.%Y Andreas -- Andreas Kostyrka | andreas@mtg.co.at phone: +54/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA