Using joda-time would make it easier.

    LocalDateTime t1;
    LocalDateTime t2;
    return t1.toLocalDate().equals(t2.toLocalDate());