[Zope] Zope Date format conversion problem

Chris Withers chrisw at nipltd.com
Thu Oct 9 10:03:28 EDT 2003

K. Praveen Kumar wrote:

> <dtml-var la_header>

well, you're using DTML which is pretty silly, should be using ZPT for 

> 		<form name="data" ACTION="test_back" METHOD="POST">
> <input type="text" name="date2" size="15" value="">

try changing that to:

<input type="text" name="date2:date" size="15" value="">

> test_back:
> <dtml-if "submit=='update'">
> <dtml-if "date2==_.None">
>      <dtml-var date2 null="">
> <dtml-else>
>      <dtml-call "REQUEST.set('date2',date2.strftime('%Y/%m/%d'))">
>      <dtml-var date2 null="">
> </dtml-if>
> </dtml-if>

This lot should really be a python script...


More information about the Zope mailing list