What this means that the date object you are comparing with the ones from CoreData is not equal. You can say that you are trying to equate COMPLETELY different objects.
So what you can do is, use a solution from this link to break a Date()
object into components such as date
, hour
, minute
, etc. and then compare the date
component with the ones from CoreData. Note that the component conversion needs to be done for the CoreData Dates as well