db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars Clausen ...@statsbiblioteket.dk>
Subject Re: Derby dates
Date Tue, 27 Sep 2005 07:33:10 GMT
On man, 2005-09-26 at 21:28, Ryan Bobko wrote:
> I would look into a SimpleDateFormat object. It can handle text-to-date
> and date-to-text conversions pretty easily.

Just a warning: The SimpleDateFormat class is *not* threadsafe.  We have
gotten a fair amount of data corrupted on that basis. Fortunately, we
don't have to use that when talking to Derby, as
java.util.Date-java.sql.Timestamp conversion works nicely.

-Lars


Mime
View raw message