Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 9674 invoked by uid 500); 24 Oct 2001 21:54:48 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 9654 invoked from network); 24 Oct 2001 21:54:45 -0000 Message-ID: From: "Faulkner, Perry" To: "'cocoon-users@xml.apache.org'" Subject: RE: date-format in cocoon 1.8.2 Date: Thu, 25 Oct 2001 07:54:33 +1000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Christian, These comments apply to Cocoon 2, but the generated java code checks for a null value and returns "", otherwise it uses the SimpleDateFormat to convert the date. You might look at your generated code to see if it is doing the same thing. Maybe this was added for Cocoon 2. Anyway, if it isn't doing the right thing, you can get hold of the stuff from 2 and put that into your code, either add it to your esql.xsl or simply use in your xsp file, within your to fetch the date, test for null and format, as required, just like the Cocoon 2 code! Look at the esql.xsl and there should be some esql samples that do this sort of thing. HTH, regards Perry -----Original Message----- From: Schroeter Christian [mailto:Christian.Schroeter@nbg.sbs.de] Sent: Wednesday, 24 October 2001 23:35 To: cocoon-users@xml.apache.org Subject: Re: date-format in cocoon 1.8.2 Now if the value in the db is null then i get an error-message. Without the format - attribute i wouldnt get it. What must i change, and how? cu, Christian Am Dienstag, 23. Oktober 2001 19:01 schrieben Sie: > Specify the format attribute using a Java SimpleDateFormat string. For > instance, > > > -Christopher > > > > > Please respond to cocoon-users@xml.apache.org > > To: cocoon-users@xml.apache.org > cc: > > Subject: date-format in cocoon 1.8.2 > > > Hi, > > what must i do to change the format of the date i get with > > > i am using cocoon1.8.2 > > cu, > christian > > > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. > > To unsubscribe, e-mail: > For additional commands, e-mail: --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: