This question has been asked gazillions of times before. If you search the mailing list you can find the answer. If you search google using the key words 'zope format date' you will notice in the results a link to zopelabs. They have this great little cookbook http://www.zopelabs.com/cookbook/990690237 (dtml version) http://www.zopelabs.com/cookbook/1071006893 (zpt version) I have this in the root of my development site so that I can refer to it all the time. HTH ____________________________________________ Peter Millar -----Original Message----- From: zope-bounces@zope.org [mailto:zope-bounces@zope.org] On Behalf Of Zorze Sent: Friday, 14 January 2005 09:56 To: zope@zope.org Subject: [Zope] Format date fields Hi, I'am new to Zope so please excuse me about some stupid questions. How can I format a date field from in a DTML from ZSQL Method e.i.: It shows 2005-01-12 22:49:33:00 but I want to show just 2005-01-12 or change de order of the date :01-12-2005. Thank you for your help. Regards, Zorze _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )