SimpleDateFormat df =
new
SimpleDateFormat(
"yyyy-MM-dd HH:mm:ss"
);
String time = df.format(
Date());
Timestamp ts = Timestamp.valueOf(time);