@Test
public void checkNMonthLegal() {

    String dateFrom = "2018-06-10";
    String dateTo = "2018-07-09";
    System.out.println("checkNMonthLegal result：" + DateUtil.checkNMonthLegal(dateFrom, dateTo, 2));
}