Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 41728 invoked from network); 26 Mar 2003 17:00:54 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 26 Mar 2003 17:00:54 -0000 Received: (qmail 1570 invoked by uid 97); 26 Mar 2003 17:02:42 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@nagoya.betaversion.org Received: (qmail 1562 invoked from network); 26 Mar 2003 17:02:42 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 26 Mar 2003 17:02:42 -0000 Received: (qmail 38184 invoked by uid 500); 26 Mar 2003 17:00:11 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 38145 invoked from network); 26 Mar 2003 17:00:11 -0000 Received: from mail.cadp.org (HELO rams.nisc.cc) (12.10.126.154) by daedalus.apache.org with SMTP; 26 Mar 2003 17:00:11 -0000 Received: from [12.10.126.135] (helo=gdunn) by rams.nisc.cc with smtp (Exim 3.16 #1) id 18yEFx-00083c-00 for struts-user@jakarta.apache.org; Wed, 26 Mar 2003 11:00:05 -0600 Reply-To: From: "Greg Dunn" To: "Struts Users Mailing List" Subject: RE: Formatting dates in Date: Wed, 26 Mar 2003 10:59:42 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 In-Reply-To: X-Scanner: exiscan *18yEFx-00083c-00*be0JCDN89J.* X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N That's what I'm doing, but I was wondering if there was a better way. Greg -----Original Message----- From: Jamesey [mailto:JamesPrance@hotmail.com] Sent: Wednesday, March 26, 2003 10:53 AM To: struts-user@jakarta.apache.org Subject: Re: Formatting dates in How about using SimpleDateFormat in the bean.. then you can apply your own date format.. "Greg Dunn" wrote in message news:NFBBKKACDJNFACNPFOHMMEJGDHAA.greg.dunn@mo.nisc.cc... > I'm trying to display a date in a particular format in an > box. I'm filling my form bean from my DAO which returns a timestamp, and > > value="${meterReading.dtPresReadDt}"/> > > displays the long date/time format 'Tue Mar 26 10:45:59 CST 2003' which is > no good. > > I was looking at a discussion on this topic in the archives, but it appears > that it was left as "food for thought" > > http://www.mail-archive.com/struts-user@jakarta.apache.org/msg52386.html > > I use the JSTL tag to display a date outside a form, but it > can't be nested so it's no good here. > > This scenario seems like it would be fairly common. What does one do here? > Format the date in a get/set pair in their bean and display that? Use basic > HTML tags? What's best practice? > > Thanks, > > > Greg --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org