关于Java时间日期格式转换对应API(SimpleDateFormat)
时间日期格式转换对应API
指定日期格式看自己业务需求而定
public class Demo01 {
public static void main(String[] args) throws ParseException {
Date date = new Date();//创建时间日期对象 java.util.Date;
System.out.println(date); //当前输出结果为 : Mon May 24 10:37:23 CST 2021
原创
2021-05-24 10:48:37 ·
345 阅读 ·
0 评论