commons-dev 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 16:39:59 GMT
I'm trying to convert a String into a Timestamp using:

 

ConvertUtils.register(new SqlTimestampConverter(), Timestamp.class);

SqlTimestampConverter converter = new SqlTimestampConverter();

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.

 

--Brad


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