[Zope] formatting a date string

Graham Chiu anon_emouse@hotmail.com
Wed, 8 Mar 2000 09:22:55 +1200


In article <Pine.SOL.4.10.10003070936520.22456-100000@argyle>, Jeff
Hoffman <jeff.hoffman@goingv.com> writes
>Here is some code that works:
>
>  
><dtml-call "REQUEST.set('CurrentDate', ZopeTime().Date())">
>  <dtml-call "REQUEST.set('mystring', 'date: ' + CurrentDate)">
>  <dtml-var mystring>

Thanks.

What had me confused is that

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

and

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

both display the same date string whereas I guess the latter should
display an error.  It only reports an error when I try to do something
else with the variable.

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