爷的眼睛闪亮
insideDotNet En_summerGarden
 SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");  
     Date date=new Date();  
     Calendar calendar = Calendar.getInstance();  
     calendar.setTime(date);  
     calendar.add(Calendar.DAY_OF_MONTH, -1);  
     date = calendar.getTime();  
     System.out.println(sdf.format(date)); 

 

posted on 2022-07-11 15:57  爷的眼睛闪亮  阅读(1242)  评论(0编辑  收藏  举报