I'm trying to perform a query on the Office 365 Graph API to say "give me all emails before {someISODateTimeString}"
For example:
https://graph.microsoft.com/v1.0/me/messages?$filter=receivedDateTime gt 2016-02-26T14:41:08Z
It would seem that gt (greater than) is actually operating as greater than or equal to (ge), as the above query returns me an email which has the exact receivedDateTime value that I passed into the query.
So I tried a workaround:
https://graph.microsoft.com/v1.0/me/messages?$filter=receivedDateTime ne 2016-02-26T14:41:08Z AND receivedDateTime ge 2016-02-26T14:41:08Z
This also fails to omit the email with the received date of 2016-02-26T14:41:08Z.
Any help with how to achieve a "greater than" query on received date would be appreciated.