[Zope] Displaying the date in dtml method
Andreas Jung
Andreas Jung" <andreas@zope.com
Tue, 12 Mar 2002 10:46:58 -0500
see strftime() in DateTime documentation.
- aj
----- Original Message -----
From: "Wayne Pascoe" <wayne.pascoe@ehsrealtime.com>
To: <zope@zope.org>
Sent: Tuesday, March 12, 2002 10:41
Subject: [Zope] Displaying the date in dtml method
> Hi all,
>
> I am trying to display the date in a dtml method. I am currently using
> <dtml-var expr="_.DateTime('GMT')">
> but this is too verbose. It prints the following :
> 2002/03/12 15:40:45.7868 GMT
>
> I am looking for a function that will just print
> 2002/03/12
>
> Is there anything that will do this, or do I have to take another route ?
>
> Thanks,
>
> --
> Wayne Pascoe <wayne.pascoe@ehsrealtime.com>
>
> The price of freedom is eternal vigilance
> - Thomas Jefferson
>
>
> _______________________________________________
> 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 )
>