[Zope] How do I get the first ten characters of a string?

Oleg Broytmann Oleg Broytmann <phd@mail2.phd.pp.ru>
Fri, 23 Feb 2001 20:44:33 +0300 (MSK)


On Fri, 23 Feb 2001, Lars Heber wrote:
>  I wanted to do that with a date:
>
>      <dtml-let datum="ZopeTime()+7">
>  <dtml-var "datum[:10]">
>     </dtml-let>
>
>  "Date is unsliceable"... ??? What I want to get is just the date
> without the time!
>
>  Any ideas?

   Convert datum to a string: _.str(datum)[:10]

Oleg.
----
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.