1String pattern = "yyyy-MM-dd";
2SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);
3
4String date = simpleDateFormat.format(new Date());
5System.out.println(date);
6
1String pattern = "yyyy-MM-dd";
2SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);
3