JDBC and null dates
posted 15 years ago
When inserting a record from my jsp page into Sybase my date is displayed as Wed Dec 31 16:00:00 PST 1969. The date field is blank on my jsp page but the database requires a value on insert. I am using the pPreparedStatement ps.setNull(1,java.sql.Types.Date) I really want the date to be null in the database. How can I get past this value being displayed in the database?