[Zope] formatting a date string

Graham Chiu anon_emouse@hotmail.com
Tue, 7 Mar 2000 23:25:02 +1200


I'm still having difficulty with this.

I want to add a date to a character string ( dated user comments ) to
store into a sqltable.

<dtml-call "REQUEST.set('CurrentDate', ZopeTime().Date)">

The docs say that this returns a date string ( as opposed to a date
object? )

<dtml-call "REQUEST.set('mystring', 'date: '+CurrentDate)">

produces this error

Error Type: TypeError
Error Value: illegal argument type for built-in operation

And if I try this

<dtml-call "REQUEST.set('mystring', 'date: '+_.str(CurrentDate))">

mystring is then 'date:'


-------
Regards,        Graham Chiu
gchiu<at>compkarori.co.nz
http://www.compkarori.co.nz/x.php?/Shopping
http://www.compkarori.com/dynamo - The Homebuilt Dynamo
http://www.compkarori.com/dbase - The dBase bulletin