@Test
public void demo3(){
//获取LocalDate的年月日
LocalDate today = LocalDate.now();
int year = today.getYear();
int month = today.getMonthValue();
int day = today.getDayOfMonth();
System.out.println("年:"+year);
System.out.println("月:"+month);
System.out.println("日:"+day);
}
4.对比日期的月日
@Test
public void demo4(){
//对比日期的月日
LocalDate dateNow = LocalDate.now();
LocalDate date = L