Calendar   cal   =   Calendar.getInstance();
  cal.add(Calendar.DATE,   -1);
  String yesterday = new SimpleDateFormat( "yyyy-MM-dd ").format(cal.getTime());
  System.out.println(yesterday);

相关文章:

  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2022-02-21
  • 2021-11-29
  • 2022-12-23
  • 2021-08-11
  • 2021-11-25
猜你喜欢
  • 2021-08-31
  • 2021-11-14
  • 2022-12-23
  • 2021-07-10
  • 2022-02-16
  • 2022-12-23
相关资源
相似解决方案