Is it possible to informe the DateTime module about the date format without changing the zope.conf file? Format: dd/mm/yyyy When I try the <dtml-var "DateTime(12/11/2005)"> it returns 2005/12/11 instead of 2005/11/12. Thanks in Advance. Fernando Lujan
Try: <dtml-var "DateTime('12/11/2005').strftime('%Y/%m/%d')"> 2005/10/17, Fernando Lujan <flujan@gmail.com>:
Is it possible to informe the DateTime module about the date format without changing the zope.conf file?
Format: dd/mm/yyyy
When I try the <dtml-var "DateTime(12/11/2005)"> it returns 2005/12/11 instead of 2005/11/12.
Thanks in Advance.
Fernando Lujan _______________________________________________ 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 )
-- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com
Look at the DateTime API (strftime()). -aj --On 17. Oktober 2005 18:33:31 -0200 Fernando Lujan <flujan@gmail.com> wrote:
Is it possible to informe the DateTime module about the date format without changing the zope.conf file?
Format: dd/mm/yyyy
When I try the <dtml-var "DateTime(12/11/2005)"> it returns 2005/12/11 instead of 2005/11/12.
Thanks in Advance.
Fernando Lujan _______________________________________________ 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 )
participants (3)
-
Andreas Jung -
Fernando Lujan -
Peter Bengtsson