I\'ve got a class which contains an atttribute of java.time.LocalDateTime type.
public class MyClass{ // ... private LocalDateTime fecha; // ... } >
LocalDateTime and LocalDate are incompatible types as is (although they both implement Temporal, in case you can work with that).
LocalDateTime
LocalDate
Otherwise, you have a LocalDateTime#toLocalDate conversion method available.