日历日期为yyyy-mm-dd格式
yyyy-MM-dd
Calendar cal = Calendar.getInstance();cal.add(Calendar.DATE, 1);Date date = cal.getTime(); SimpleDateFormat format1 = new SimpleDateFormat("yyyy-MM-dd");String date1 = format1.format(date); Date inActiveDate = null;try { inActiveDate = format1.parse(date1);} catch (ParseException e1) { // TODO Auto-generated catch block e1.printStackTrace();}
inActiveDate = Wed Sep 26 00:00:00 IST 2012
2012-09-26
yyyy-MM-dd
相关分类