SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String dateString = dateFormat.format(new Date());
System.out.println(dateString);
Timestamp ts = new Timestamp(System.currentTimeMillis());
ts = Timestamp.valueOf(dateString);
String dateString = dateFormat.format(new Date());
System.out.println(dateString);
Timestamp ts = new Timestamp(System.currentTimeMillis());
ts = Timestamp.valueOf(dateString);