/**
     * 日期增加一天
     * @param today 日期str
     * @return 加上几天后的日期
     */
    private String addOneday(String today, int i) {
        SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd");
        try {
            Date d = new Date(f.parse(today).getTime() + 24 * 3600 * 1000 * i);
            return f.format(d);
        } catch (Exception ex) {
            return today;
        }
    }

相关文章:

  • 2022-03-05
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案