详细:Java格式化日期,时间的三种方法

1.String.format()
在java中String类格式化的方法,是静态format()用于创建格式化的字符串。
format(String form…