I have been trying to filter calendar events on specific dates, so I wrote the following codes
List<Microsoft.Graph.QueryOption> options = new(); ;
options.Add(new Microsoft.Graph.QueryOption("$filter",$"start ge {startDate.ToDateTimeTimeZone()} and end le {endDate.ToDateTimeTimeZone()}"));
and
var eventResponse = await this.graphServiceClient.Me.Calendars[calendarId].Events.Request().Select("start").Filter($"start ge {startDate.ToDateTimeTimeZone()}").GetAsync();
but none of them seemed to work, I bounced between a lot of errors the last one was
Message: Invalid filter clause: Encountered invalid type cast. 'microsoft.graph.dateTimeTimeZone' is not assignable from 'microsoft.graph.event'.
I would really appreciate some , thanks in advance