improve filling of prepared statement for setDate in case the
java.sql.Date is not a pure date.