SimpleDateFormat now = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Calendar c = Calendar.getInstance();
System.out.println("insertTime--->"+now.format(c.getTime()));
SimpleDateFormat now = new SimpleDateFormat("yyyy-mm-dd HH:mm:ss");
yyyy-mm-dd如果写成小写的"mm"则指的是分钟,大写才是月