Search code examples
realm

Query dates in Realm Studio


How can I write query (with date) inside Realm Studio? Query like "scheduleAt != null" works well but something like "scheduleAt > '2018-02-15T09:01:58.146Z'" not. If I represent date in millis it doesn't work to


Solution

  • I've tried with Realm Studio 1.10.0 and it didn't work with that version yet, but downloading the current latest 1.18.4 seems to feature the new Core Query Parser, based on which I have successfully queried it like so:

    birthday == 2017-1-11@11:0:0
    birthday == 2017-01-11@11:00:00
    
    birthday > 2017-01-11@10:00:00 AND birthday < 2017-12-31@10:00:00