Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

date format in java and db2

843854Feb 24 2004 — edited Feb 24 2004

hi

i have a jdbc pgm which on running creates a table and stores some values into it
now my problem is ...
one of the coloum of my table is date& time
i want the current system date to be stored in the database
the error i am getting is the types of both java util object and in the database r different
the database i am using is IBM-DB2

if there is a provission to store the date got by the function (new java.util.Date()) in a string it will be great
can this be possible

thanx 4 ur time
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2004
Added on Feb 24 2004
1 comment
282 views