Date sdate=null;
Calendar c = new GregorianCalendar();
c.setTime(tbScheduleDutyEntity.getStartDate());//设置参数时间
c.add(Calendar.MINUTE,-30);
sdate=c.getTime();
NOTE: tbScheduleDutyEntity.getStartDate () type Date Date if the string please turn into type.