How to convert java.util.Date to java.sql.Date keeping up hours, minutes and seconds?

Asked

Viewed 755 times

3

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

Thank you.

1 answer

2


  • Perfect guy, solved my problem! Thank you so much

Browser other questions tagged

You are not signed in. Login or sign up in order to post.