[Zope] DateTime problem

Dieter Maurer dieter@handshake.de
Wed, 15 Nov 2000 00:08:56 +0100 (CET)


Alejandro Pancani writes:
 > if I have a string that represent a date with the format dd/mm/yyyy
 > How could I do to obtain a DateTime object from it?

  <dtml-call "REQUEST.set('tmplist',_.string.split(udate,'/'))">
  <dtml-call "tmplist.reverse()">
  <dtml-var "ZopeTime(_.string.join(tmplist,'/'))">

is one solution.


Dieter