Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 39565 invoked from network); 19 Feb 2010 14:58:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Feb 2010 14:58:42 -0000 Received: (qmail 93636 invoked by uid 500); 19 Feb 2010 14:58:40 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 93579 invoked by uid 500); 19 Feb 2010 14:58:40 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 93562 invoked by uid 99); 19 Feb 2010 14:58:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Feb 2010 14:58:40 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Feb 2010 14:58:31 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NiUJ1-0002Cy-7H for user@struts.apache.org; Fri, 19 Feb 2010 06:58:11 -0800 Message-ID: <27653078.post@talk.nabble.com> Date: Fri, 19 Feb 2010 06:58:11 -0800 (PST) From: fireapple To: user@struts.apache.org Subject: Re: how to eliminate time in In-Reply-To: <7d3e1a011002181632h2d6fadc3h7bf0d61076affd21@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: taizhang1981@gmail.com References: <27647328.post@talk.nabble.com> <7d3e1a011002181632h2d6fadc3h7bf0d61076affd21@mail.gmail.com> Does that mean I have to create something like: public String getStartDateStr() { ........... } to do this? I don't want to use this because if I use this getter, I have to create a setter for this since user can edit the date. Any other options? Thanks Brian Thompson-5 wrote: > > Just add a getter to your "train" object that translates the startDate > into > the format you'd like. Use a DateFormat object. > > -Brian > > > > On Thu, Feb 18, 2010 at 5:07 PM, fireapple wrote: > >> >> Dear all, I'm using >> >> >> where startDate is a java.util.Date field of an object train. >> >> The output is something like this: >> >> http://old.nabble.com/file/p27647328/date.png >> >> How can I eliminate the 12:00:00 in the textfield? Thanks! >> -- >> View this message in context: >> http://old.nabble.com/how-to-eliminate-time-in-%3Cs%3Atextfield%3E-tp27647328p27647328.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> For additional commands, e-mail: user-help@struts.apache.org >> >> > > -- View this message in context: http://old.nabble.com/how-to-eliminate-time-in-%3Cs%3Atextfield%3E-tp27647328p27653078.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org