I want to insert the current date from my
servlet into a column of type 'date' in a table in MySQL. How do I do that?
I tried this:
java.sql.Date sysdate = new java.sql.Date(
(new java.util.Date()).getTime());
and inserted 'sysdate', but the value of the column is '0000-00-00' after the insertion!