获取系统当前时间 SimpleDateFormat df = new SimpleDateFormat (); df.applyPattern("yyyyMMddHHmmss"); Date date = new Date(); String dateTime = df.format(date);