I have been in the process of updating from V2 to V3 (5.68). I had a V3 project working 2 weeks ago, but the last 2 days I have been getting errors with the date filter. I pack in the date into a query....
`public string[] PROPERTIES_FOR_HEADER_QUERY = new string[] { "id","internetMessageHeaders",internetMessageId","importance","subject","toRecipients","ccRecipients","bccRecipients","hasAttachments","sender","parentFolderId","receivedDateTime","sentDateTime" };`
var mailResponse = await graphClient.Me.Messages
.GetAsync(x => { x.QueryParameters.Filter = "(receivedDateTime gt 2024-12-25T10:00:00Z)"; });
}
As of this week, I'm getting a Syntax error: character '2' is not valid at position 21 in '(receivedDateTime ge 2024-12-25T10:00:00Z)'.
The date format has worked for years. Just to verify, I ran to Graph explorer and the date format still works...
https://graph.microsoft.com/v1.0/me/messages?$filter=(receivedDateTime ge 2024-12-25T10:00:00Z)

So why is the date format an issue for the graph library now?