public class TestDate {
public static void main(String[] args) {
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd");
// 指定一个日期
// 对 calendar 设置为 date 所定的日期
Calendar cal = ();
Calendar calEnd = ();
String ss = "2020/01/08";
try {
Date dateStart = (ss);
(dateStart);
("s_time="+(()));
Date dateEnd = (ss);
(dateEnd);
(, 1);//增加一天
("e_time="+(()));
} catch (ParseException e) {
();
}
}
}