I have a slick column that is a Rep[Option[Timestamp]]. I'd like to compare it to a user supplied java.util.LocalDate via the filter method. I'm only interested in comparing the date (ddMMyyyy), not the time:
val userSuppliedLocalDate: LocalDate = ...
usersTable.filter(_.modifiedDate === userSuppliedLocalDate).result // Doesn't compile
I thought about converting the Rep[Timestamp] (_.modifiedDate) to a LocalDate, but unsure if this is possible (unwrapping a Rep type?)
Or, converting the userSuppliedLocalDate to a java.sql.Timestamp and doing a comparison ignoring the time portions - is this possible?