标签:calendar style span alc current ring class new date
1 SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 2 Date now = new Date();
//当前日期 3 String currentDate = df.format(now); 4 String minDateStr = ""; 5 Calendar calc =Calendar.getInstance(); 6 calc.setTime(now);
//当前日期7天后 7 calc.add(Calendar.DATE, 7);
//当前日期一个月后
calc.add(Calendar.MONTH, 1); 8 Date minDate = calc.getTime(); 9 minDateStr = df.format(minDate);
标签:calendar style span alc current ring class new date
原文地址:https://www.cnblogs.com/zeevy/p/12455974.html