[Zope] formatting a date string
Jeff Hoffman
jeff.hoffman@goingv.com
Sun, 5 Mar 2000 12:41:55 -0500 (EST)
On Sun, 5 Mar 2000, Jeff Hoffman wrote:
> Another way of doing this, however, is something like the following:
>
> <dtml-call "REQUEST.set('mydate', _.DateTime('2000/12/31'))">
> <dtml-var mydate fmt=dd>-<dtml-var mydate fmt=aMonth>-<dtml-var mydate
> fmt=year>
I forgot that you can also use C-style formatting, which reads much better
in this case:
<dtml-var mydate fmt="%d-%b-%Y">
See:
http://www.zope.org/Members/AlexR/CustomDateFormats
--Jeff
---
Jeff K. Hoffman 704.849.0731 x108
Chief Technology Officer mailto:jeff@goingv.com
Going Virtual, L.L.C. http://www.goingv.com/