I am not sure the question is clear.
Realm stores the data you put in it; if the wrong dates are being stored then that’s a coding (coder?) issue, not a Realm issue. On the other hand, if you want to perform a query, then you need to attempt that and include the code your attempted in your question; this is not a code-writing service as there are too many variables.
Most importantly, the question needs to be clear - are you asking how to query for all objects that have the same activationDate and/or deactivationDate?
Please clarify what’s being asked and we’ll take a look.