java 类simpledateformat
12小时制SimpleDateFormat sdf=new SimpleDateFormat(new Date(),"yyyy-MM-dd hh:mm:ss")24小时制SimpleDateFormat sdf=new SimpleDateFormat(new Date(),"yyyy-MM-dd HH:mm:ss")
?