📅  最后修改于: 2022-03-11 14:52:28.738000             🧑  作者: Mango
代码示例2
Date date = DateUtils.addDays(new Date(), -1);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
return sdf.format(date);