Thanks, Casey, on two fronts. First, this worked! Problem solved. Second, I never heard of ZopeTime. I don't find it in the Zope Book anywhere. It is certainly cleaner to use than (_.DateTime()), which I always have syntax issues with when I try to format its output. At 11:00 AM 5/1/2002 -0400, Casey Duncan wrote:
Try:
<input type="text" name="start_date" value="<dtml-var ZopeTime fmt="%b %d, %Y">">
Be sure to include the outer quotes on the value attribute.
hth,
-Casey
On Wednesday 01 May 2002 10:51 am, Dan Shafer allegedly wrote:
OK, thanks for the continuing help.
I'm generating the contents of this particular field in a DTML Document inside a <FORM> tag with this line (beginning and ending angle brackets removed to avoid rendering problems)::
input type="text" name="start_date" value=<dtml-var "(_.DateTime().strftime(:%b %d, %Y"))">
As I think I said in a previous note, but just for the sake of completeness, if I change tthat to use a textarea object instead of a text field, the date displays correctly. The text field is more than wide enough to accommodate the entire string.
Thanks for any suggestions. This one has me completely baffled.