[Zope] Still Plagued With Date Formatting Bug in Text Field

Casey Duncan casey@zope.com
Wed, 1 May 2002 11:00:03 -0400


Try:

<input type=3D"text" name=3D"start_date"=20
         value=3D"<dtml-var ZopeTime fmt=3D"%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.
>=20
> I'm generating the contents of this particular field in a DTML Document=
=20
> inside a <FORM> tag with this line (beginning and ending angle brackets=
=20
> removed to avoid rendering problems)::
>=20
> input type=3D"text" name=3D"start_date" value=3D<dtml-var=20
> "(_.DateTime().strftime(:%b %d, %Y"))">
>=20
> As I think I said in a previous note, but just for the sake of=20
> completeness, if I change tthat to use a textarea object instead of a t=
ext=20
> field, the date displays correctly. The text field is more than wide en=
ough=20
> to accommodate the entire string.
>=20
> Thanks for any suggestions. This one has me completely baffled.