摘要: 1、格式化日期 //日期格式为24小时制 SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒"); System.out.println(sdf.format(new Date())); //日期格式为12小时制 Si 阅读全文
posted @ 2018-10-30 14:19 知识追求者 阅读(190) 评论(0) 推荐(0)