LocalDate startDate = new LocalDate(2014,1,2); LocalDateTime startDateTime = new LocalDateTime(2014,2,14,0);
我需要比较startDate和startDateTime相关的日期,如下所示:
// boolean equalDates = startDate.isequal(startDateTime.getDate());
是否有可能做到这一点?
LocalDate startDate = new LocalDate(2014,1,2); LocalDateTime startDateTime = new LocalDateTime(2014,2,14,0);
我需要比较startDate和startDateTime相关的日期,如下所示:
// boolean equalDates = startDate.isequal(startDateTime.getDate());
是否有可能做到这一点?