Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 2474 invoked from network); 14 Jan 2005 18:38:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Jan 2005 18:38:49 -0000 Received: (qmail 52897 invoked by uid 500); 14 Jan 2005 18:38:43 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 52845 invoked by uid 500); 14 Jan 2005 18:38:42 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 52831 invoked by uid 99); 14 Jan 2005 18:38:42 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mssn1.peapod.com (HELO mssn1.peapod.com) (206.66.179.41) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 14 Jan 2005 10:38:41 -0800 Received: from GF09L31 (p1-33-48.corp.peapod.com [10.1.33.48]) by mssn1.peapod.com (8.12.10+Sun/8.12.2) with ESMTP id j0EIcXsl008880; Fri, 14 Jan 2005 12:38:34 -0600 (CST) Message-Id: <200501141838.j0EIcXsl008880@mssn1.peapod.com> Reply-To: From: "Brad Balmer" To: "'Jakarta Commons Users List'" , "'Kishore Senji'" Subject: RE: Help converting String to Timestamp Date: Fri, 14 Jan 2005 12:38:33 -0600 Organization: Peapod MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <38e8470105011410001ed94165@mail.gmail.com> Thread-Index: AcT6YxtN3iKqpbCQR0earJnPUECk6QABQgaA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks. Looking at it for so long it looked normal to me. -----Original Message----- From: Kishore Senji [mailto:ksenji@gmail.com] Sent: Friday, January 14, 2005 12:01 PM To: Jakarta Commons Users List; bbalmer@peapod.com Subject: Re: Help converting String to Timestamp On Fri, 14 Jan 2005 11:17:59 -0600, Brad Balmer wrote: > I sent this to the wrong list at first by accident, so sorry about the cross > post: > > I'm trying to convert a String into a Timestamp using: > > ConvertUtils.register(new SqlTimestampConverter(), Timestamp.class); > > try { > > timestamp = (Timestamp)ConvertUtils.convert(fullStringTimestamp, > Timestamp.class); > > }catch(Exception E) { > > E.printStackTrace(); > > } > > The fullStringTimestamp value is 2005-02-03 03:30.000000000 You are missing the seconds field in the fullStringTimestamp It should be in the format yyyy-mm-dd hh:mm:ss.fffffffff > > Could anybody please point me in the right direction as this is throwing a > org.apache.commons.beanutils.ConversionException. > > Thanks. > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org