[Zope] displaying dates in European format

Paula Mangas pamm@students.si.fct.unl.pt
Tue, 22 May 2001 03:09:42 +0100 (WEST)


Hi!


from DateTime.DateTime import DateTime

(...)

today = DateTime('GMT')

*today* has the format: "2001/05/20 23:27:19.3491 GMT"
So, you can do that: today[8:10]+'/'+today[5:7]+'/'+today[0:4]

I hope this help,
Paula Mangas






On Tue, 22 May 2001, Sandy Britain wrote:

> At the risk of getting an RTFM response,
>
> does anyone know how to display dates in European format i.e.
> DD/MM/YYYY?
>
> cheers Sandy.
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>