??? SimpleDateFormat dft=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
??? Date date = new Date();
??? Calendar?? dar=Calendar.getInstance();
??? dar.setTime(date);
??? dar.add(java.util.Calendar.HOUR_OF_DAY, -2);
??? System.out.println(dft.format(dar.getTime()));
?? dar.add(java.util.Calendar.HOUR_OF_DAY, 2);
??? System.out.println(dft.format(dar.getTime()));