SimpleDateFormat formatter= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String format = formatter.format(new Date()); formatter.parse(format)
第二种方式 Timestamp timestamp = new Timestamp(System.currentTimeMillis());
SimpleDateFormat formatter= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String format = formatter.format(new Date()); formatter.parse(format)
第二种方式 Timestamp timestamp = new Timestamp(System.currentTimeMillis());