How can I store a specific date from java to my database? (Not only the date today, but also some dates that the user wants to specifiy)
try { Simpl
use this it can help
static java.sql.Timestamp getSqlDate(Date date) { java.util.Date javaDate = date; long javaTime = javaDate.getTime(); java.sql.Timestamp sqlTimestamp = new java.sql.Timestamp(javaTime); return sqlTimestamp; }