SimpleDateFormat f = new SimpleDateFormat("yy年MM月dd 日HH:mm");//设置日期格式 String time = f.format(new Date());