public static void main(String[] args) {

Calendar start = Calendar.getInstance();
start.set(2014, 6, 11);
Long startTIme = start.getTimeInMillis();

Calendar end = Calendar.getInstance();
end.setTime(new Date());
Long endTime = end.getTimeInMillis();

Long oneDay = 1000 * 60 * 60 * 24l;

Long time = startTIme;

while (time <= endTime) {
Date d = new Date(time);
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
System.out.println(df.format(d));
time += oneDay;

}

}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2022-01-22
  • 2022-12-23
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
  • 2022-12-23
  • 2021-07-08
  • 2021-12-02
  • 2021-11-18
相关资源
相似解决方案