Datel类型转换为String 类型 Date dd=new Date(); SimpleDateFormat sim=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String time=sim.format(dd); 格式化时间 SimpleDateFormat sim=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");