Dates
From: Peter Kirk (peter)
Date: 07/09/04
- Previous message: Daniel Hagen: "Re: Java and SQL Server"
- Next in thread: kaeli: "Re: Dates"
- Reply: kaeli: "Re: Dates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 9 Jul 2004 14:17:56 +0200
Hi
I have an Oracle database, from which I am trying to select a DATE column.
In the database I can see that the value of the DATE is for example
"09-07-2004 12:55:50", but when I fetch the column as a java.sql.Date object
(from my result set) I do not see the hours, minutes, seconds values. This
seems to match the description of java.sql.Date, as I have since found out.
But even when I select the column as a java.sql.Timestamp I still do not see
the hours, minutes, and seconds.
What method on the result-set (and what java object) should I use to get the
entire date (including the hours, minutes, and seconds)?
Thanks,
Peter
- Previous message: Daniel Hagen: "Re: Java and SQL Server"
- Next in thread: kaeli: "Re: Dates"
- Reply: kaeli: "Re: Dates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]