String dateStr = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(date); HH返回的是24小时制的时间!! hh返回的是12小时制的时间!!