commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brad Balmer" <bbal...@peapod.com>
Subject Help converting String to Timestamp
Date Fri, 14 Jan 2005 17:17:59 GMT
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

 

 

 

Could anybody please point me in the right direction as this is throwing a
org.apache.commons.beanutils.ConversionException.

 

 

 

Thanks.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message