Subject Re: PreparedStatement with Date as Object
Author Steven Jardine
> Driver simply does not know what to do with java.util.Date. JDBC
> specification defines what to do with the java.sql.Date, java.sql.Time
> and java.sql.Timestamp, but it does not tell what to do with
> java.util.Date. Also JDBC specs do not require driver to do
> serialization/deserialization.
>
> So you either convert that stuff to java.sql.Date/Time/Timestamp, or
> you find some other way to set your parameter.
>
> Roman

For some reason I thought I tried that but upon trying it again I find
that it works when I convert to java.sql.Date. Thanks for your help.

Steve