<davide@yahoo.com> wrote in message
news:akneip$1k61g4$4@ID-18487.news.dfncis.de...
> Peter Kirk <peter_kirk@alpha-gruppen.dk> wrote:
> > The date is inserted, but not the time. Why could this be?
> Check what kind of field you are insertint into. If it's a DATE field maybe the
> time is set to 0 automatically.
> Davide
Hi, thanks for the reply. Yes, the field is a DATE field. Do you think the database
might just set the time to 0?
I can get it to work if I make a timestamp instead: stmt.setTimestamp( 4, new
java.sql.Timestamp( photo.getDate().getTime() ));
This inserts as I expect into the DATE field.
Peter.