Store Date/Time data

Advertisement
I have a table's field to store the user registration date and time. This field has a Date/Time data type. How to use java to get the current system date and time , and store them into this field? This database is created using MySql.
Advertisement

Replay

to get current date...
     java.util.Date date = new java.util.Date();