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
  • 2022-12-23
  • 2021-12-22
  • 2021-12-06
  • 2022-12-23
  • 2022-02-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2021-06-08
  • 2022-12-23
  • 2022-01-02
相关资源
相似解决方案