How make implicit Ordered on java.time.LocalDate
问题 I want to use java.time.LocalDate and java.time.LocalDateTime with an implicit Ordered like: val date1 = java.time.LocalDate.of(2000, 1, 1) val date2 = java.time.LocalDate.of(2010, 10, 10) if (date1 < date2) ... import scala.math.Ordering.Implicits._ doesn't work, because LocalDate inherits from Comparable<ChronoLocalDate> instead of Comparable<LocalDate> . How can I write my own imlicit Orderd to use <, <=, >, >= operators/methods to compare LocalDate 's? Edit: I found a way with use of an