[Zope] dtml-calendar date formatting

Dieter Maurer dieter@handshake.de
Thu, 15 May 2003 21:10:53 +0200


jwsacksteder@ramprecision.com wrote at 2003-5-15 09:46 -0400:
 > Is there an easy way to massage the output of date.Date() from dtml-calendar
 > into a format that is more directly usable in sql queries? I would like to
 > get dates out like 2003-05-12 rather than 05//12/03. 
 > 
 > I was hoping for something like date.Date(yyyy-mm-dd), but no such thing is
 > apparently supported.  

"DateTime" objects are documented ;-)

I think, both in the embedded online help as well in "DateTime/DateTime.html".

One option is to use "strftime"...


Dieter