Graph API: Filtering messages by specific timezone

Gabriele Mandarano 0 Reputation points
2024-07-04T05:32:59.3266667+00:00

Hello,

I need help with the Graph API. Is it possible to apply a filter to query messages with a specific datetime range in a specific timezone, for example, "Europe/Rome"?

As the Graph API stores default datetime values in UTC, I'm not able to retrieve the messages that were sent using another timezone. When I query using the receivedDateTime filter, the date for my email, sent at 7:09 AM, is stored in UTC as 5:09 AM. How can I apply the filter in a particular timezone?

Thank you.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,389 questions
0 comments No comments
{count} votes