On Nov 19, 7:24 pm, "tes...@hotmail.com" <tes...@hotmail.com> wrote:
> I have a Date insert that is formatted into an Oracle 9i database and
> it works.
[quoted text clipped - 19 lines]
> Please advise how I can get the Oracle Date datatype to work where I
> can also format it?
I also tried pstmt.setTimestamp(2, sub_date) and it didnt format
also. Please advise.
Arne Vajhøj - 20 Nov 2007 02:35 GMT
> On Nov 19, 7:24 pm, "tes...@hotmail.com" <tes...@hotmail.com> wrote:
>> I have a Date insert that is formatted into an Oracle 9i database and
[quoted text clipped - 23 lines]
> I also tried pstmt.setTimestamp(2, sub_date) and it didnt format
> also.
pstmt.setTimestamp is the correct solution to insert a Timestamp
in a DATE column.
Try show us the code you use and the exception you get.
Arne