获得当前时间:
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
String c=sdf.format(new Date());
System.out.println(c);
获得当前时间:
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
String c=sdf.format(new Date());
System.out.println(c);