SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
Date date = new Date();
System.out.println(sf.format(date));

被折叠的 条评论
为什么被折叠?