Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 61456 invoked from network); 26 Sep 2008 17:45:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Sep 2008 17:45:10 -0000 Received: (qmail 39898 invoked by uid 500); 26 Sep 2008 17:45:04 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 39829 invoked by uid 500); 26 Sep 2008 17:45:04 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 39817 invoked by uid 99); 26 Sep 2008 17:45:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Sep 2008 10:45:03 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [204.124.92.26] (HELO mail3.blm.gov) (204.124.92.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Sep 2008 17:44:03 +0000 Received: from ILMNIRM3AP61.blm.doi.net (ilmnirm3ap61.blm.gov [158.68.141.98]) by mail3.blm.gov (8.14.3/8.14.3) with ESMTP id m8QHcF79024216 for ; Fri, 26 Sep 2008 11:38:15 -0600 Subject: [Betwixt] formatting dates To: user@commons.apache.org X-Mailer: Lotus Notes Release 6.5.4 March 27, 2005 Message-ID: From: Peter_Ford@blm.gov Date: Fri, 26 Sep 2008 11:38:12 -0600 X-MIMETrack: Serialize by Router on LMNI11/BLM/DOI(Release 6.5.4FP2|September 12, 2005) at 09/26/2008 11:46:22 AM MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Scanned-By: MIMEDefang 2.64 on 10.120.15.11 X-Virus-Checked: Checked by ClamAV on apache.org I'm using a bean that contains a java.util.Date and I need to be able to have this formatted (using a SimpleDateFormat object) to a specification I've been given. At the moment the date is being rendered in the output XML using the default format. Is there a way to tell Betwixt to use a SimpleDateFormat object for this one element? I *could* change the getter/setter to use a String representation but that would change the interface and probably wouldn't be acceptable to the developers who'll be using it; also I'd like to be able to have the format string only be something used for Betwixt, rather than being part of the bean code (i.e. the bean shouldn't need to know or care how it's represented). --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org