DateFormat formatter = new SimpleDateFormat(format);
Date currentTime = new Date();//得到当前系统时间
String str_time = formatter.format(currentTime); //将日期时间格式化
format = “HHmmss” 输出的结果: 152323
format = “hhmmss” 输出的结果:032323
DateFormat formatter = new SimpleDateFormat(format);
Date currentTime = new Date();//得到当前系统时间
String str_time = formatter.format(currentTime); //将日期时间格式化
format = “HHmmss” 输出的结果: 152323
format = “hhmmss” 输出的结果:032323