In SQLITE i had this query:
SELECT * FROM TABLE WHERE LAST_REQUEST > date('now', '-1 day')
Is there some equivalent in Realm to get rows from 1 day or less?
Well technically java.util.Date
is a supported type in Realm, so you'd need to make a date of now and a date of the previous day, and use between.
Like in https://stackoverflow.com/a/48205516/2413303
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With