Datedate1=oneDay.getTime();
Datedate2=oneWeek.getTime();
Datedate3=oneMonth.getTime();
Datedate4=oneQuarter.getTime();
Datedate5=oneYear.getTime();
Stringss=df.format(startDate);
Stringss1=df.format(date1);
Stringss2=df.format(date2);
Stringss3=df.format(date3);
Stringss4=df.format(date4);
Stringss5=df.format(date5);
System.out.println("Startdateis"+ss);
System.out.println("Followingreviewdatesare:");
文章来源于领测软件测试网 https://www.ltesting.net/