I'm doing a Java program. In it I get a date of type java.util.Date
, but I need it in java.sql.Date
so I can insert it into the database. But on that date, I have hour, minute and second and I would like to insert with all this data. Does anyone know how to do this?
Thank you.