Date sdate=null;
Calendar c = new GregorianCalendar();
c.setTime(tbScheduleDutyEntity.getStartDate());//设置参数时间
c.add(Calendar.MINUTE,-30);
 sdate=c.getTime();

 

注:tbScheduleDutyEntity.getStartDate()为Date类型,如果字符串请先转成Date类型。

相关文章:

  • 2022-12-23
  • 2021-08-15
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-03
  • 2022-12-23
猜你喜欢
  • 2022-02-08
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案