Skip to Content
0
Former Member
Sep 24, 2005 at 10:31 PM

java dictionary

148 Views

Hello All,

I have created a table using the java dictionary.One of the columns is of type DATE. Our database is oracle. I am using jdbc to access data from the table. When is use the preparestatement setdate to insert data into the date column it does not work . FOr example if i say

con.setDate(1,new java.sql.Date(new java.util.Date().getTime()) it gives me an error saying that invalid object 24-sep-2005 6:21 of type java.sql.Date .

How can i get around this?

Thanks