[ZODB-Dev] Date Conversion in Zope

Dieter Maurer dieter at handshake.de
Tue Jun 3 21:28:30 EDT 2003


enrica dente wrote at 2003-6-2 20:57 +0000:
 > Does anyone know how to convert a date from format DD/MM/YYYY into format 
 > YYYY/MM/DD using Python in Zope?

In a Python Script "convertDate" with parameter "dmy":

   d,m,y= dmy.split()
   return '/'.join((y,m,d))


Dieter



More information about the ZODB-Dev mailing list