日期格式化一直使用的是SimpleDateFormat进行格式化。String.format也可以格式化。 1. 日期格式化 (2018/5/13 周日 中文环境下测试) 2. 时间格式化 (15:03:15.923 中文环境下测试) 3. 日期+时间 (2018/5/13 15:44:21 中文环境)