[Zope] print date

Andreas Jung lists at andreas-jung.com
Tue Mar 8 06:02:25 EST 2005



--On Dienstag, 8. März 2005 2:56 Uhr -0800 john blair 
<mailtome200420032002 at yahoo.com> wrote:

> Hi
> I just want to print todays date in the format
> YYYY-MM-DD.Tried various things and lastly had to
> resort to external method.Can someone show a better
> way
>
>

print DateTime().strftime(formatstring)

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20050308/b97de5a4/attachment.bin


More information about the Zope mailing list