Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 54797 invoked from network); 7 Oct 2007 18:24:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Oct 2007 18:24:00 -0000 Received: (qmail 68595 invoked by uid 500); 7 Oct 2007 18:23:48 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 68513 invoked by uid 500); 7 Oct 2007 18:23:48 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Delivered-To: moderator for dev@commons.apache.org Received: (qmail 20031 invoked by uid 99); 5 Oct 2007 16:27:46 -0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C8076B.9069DC9E" X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: Beanutils: Problem with DateConverter Date: Fri, 5 Oct 2007 12:19:54 -0400 Message-ID: <6DB873C2999F7547AD0D1C0E6F0C89D75E159A@USPSEXCHS1.us.icap.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Beanutils: Problem with DateConverter Thread-Index: AcgHa0HMat626fGVS7+YQSSvDkmBDQ== From: "Chris Helck" To: , X-OriginalArrivalTime: 05 Oct 2007 16:19:54.0861 (UTC) FILETIME=[909491D0:01C8076B] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C8076B.9069DC9E Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I'm trying to use the DateConverter, and it just doesn't seem to work (or I don't understand it). Here's my code: DateConverter converter =3D new DateConverter(); converter.setPattern("MM/dd/yy"); ConvertUtils.register(converter, java.util.Date.class); System.out.println(ConvertUtils.convert(new Date())); The output is: Fri Oct 05 12:22:34 EDT 2007 I expected to see: 10/5/07=20 I'm using version 1.8.0-BETA that I rebuilt from the source. I'm aware of the bug BEANUTILS-283, but I think I've got the fix. Regards, Christopher Helck ********************************************************************** This communication and all information (including, but not limited to, market prices/levels and data) contained therein (the "Information") is for informational purposes only, is confidential, may be legally privileged and is the intellectual property of ICAP plc and its affiliates ("ICAP") or third parties. No confidentiality or privilege is waived or lost by any mistransmission. The Information is not, and should not be construed as, an offer, bid or solicitation in relation to any financial instrument or as an official confirmation of any transaction. The Information is not warranted, including, but not limited, as to completeness, timeliness or accuracy and is subject to change without notice. ICAP assumes no liability for use or misuse of the Information. All representations and warranties are expressly disclaimed. The Information does not necessarily reflect the views of ICAP. Access to the Information by anyone else other than the recipient is unauthorized and any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. ********************************************************************** ------_=_NextPart_001_01C8076B.9069DC9E--