SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); Date d=new Date(); sdf.format(d); 按照格式输出