Skip to Main Content

Java Programming

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!

setDate(int, java.sql.Date) is not applicable for (int, java.util.Date)

807589Sep 3 2008 — edited Sep 3 2008
Hai, can anybody tell me how to solve The method setDate(int, java.sql.Date) in the type PreparedStatement is not applicable for the
arguments (int, java.util.Date)

PreparedStatement stmt2 = null;
java.util.Date startWeekDate=dateFrom.getTime();
stmt2.setDate(2,startWeekDate);

Thank You.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 1 2008
Added on Sep 3 2008
3 comments
3,772 views