java 种simpledateformat

java 类simpledateformat12小时制SimpleDateFormat sdfnew SimpleDateFormat(new Date(),yyyy-MM-dd hh:

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")

?

?

?