how to store java date type to mysql date type?
See that your Date is a java.sql.Timestamp (especially if you want hours,mins,sec.. to be persisted) You could convert a java.util.Date to a Timestamp like so: new Timestamp(date.getTime())
Date
java.sql.Timestamp
java.util.Date
Timestamp
new Timestamp(date.getTime())
1.4m articles
1.4m replys
5 comments
57.0k users