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

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to