Hi Glenn you're right: req:setAttribute was wrong because it's wrong in the docs http://jakarta.apache.org/taglibs/doc/datetime-doc/index.html#parse
I also didn't install the request-taglib, which is used in the parse-command. These two things should be mentioned in the documentation ;) OK, but it works now: <req:setAttribute name="pattern2">yyyy-MM-dd HH:mm:ss</req:setAttribute> <dt:parse patternId="pattern2"><%= valueString %></dt:parse><br><br> <dt:format pattern="dd.MM.yyyy"><dt:parse patternId="pattern2"><%= valueString %></dt:parse></dt:format>, <dt:format pattern="kk:mm"><dt:parse patternId="pattern2"><%= valueString %></dt:parse></dt:format> Uhr second line: <%= valueString %> is a string in the date-format from a mySQL-DB, e. g. "2001-01-01 01:05:00" and the output is "978307500000" third line: the parse-tag is enculapsed in the format-tag and the output is "01.01.2001, 01:05 Uhr" Regards, Kay -----Ursprungliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Glenn Nielsen Gesendet: Dienstag, 16. April 2002 14:37 An: Tag Libraries Users List Betreff: Re: datetime "parse" does not work ? [EMAIL PROTECTED] wrote: > > Hi, > > when I try to use the "parse"-command as described in the docs > (http://jakarta.apache.org/taglibs/doc/datetime-doc/index.html), I always > get a wrong output. > > <req:setAttribute name="pattern"/>yyyy MM dd</req:setAttribute> > <dt:parse patternId="pattern">2000 11 15</dt:parse> > > generates "yyyy-MM-dd 0" > > I'm using Tomcat 3.2.4 and the datetime nightly build 2002-14-04. > other datetime-commands (format, currentTime) are working pretty well. > Perhaps it is just a typo when entering the message, but the above req:setAttribute is not correct, the opening req:setAttribute tag is closed before it evaluates its body. It should be: <req:setAttribute name="pattern">yyyy MM dd</req:setAttribute> <dt:parse patternId="pattern">2000 11 15</dt:parse> Other than that, do the examples in the datetime-examples.war work? Regards, Glenn ---------------------------------------------------------------------- Glenn Nielsen [EMAIL PROTECTED] | /* Spelin donut madder | MOREnet System Programming | * if iz ina coment. | Missouri Research and Education Network | */ | ---------------------------------------------------------------------- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>