title: How can I get Emails through Microsoft Graph from the last hour?
body: <p>I would like to get emails for a user from the last hour. This is the code I tried: </p>
  
  <p>DateTime Object:</p>
  
  <pre><code>DateTime filter = new DateTime();
  filter = DateTime.UtcNow.AddHours(-1);
  </code></pre>
  
  <p>Call to Graph:</p>
  
  <pre><code>await graphClient.Users[broker.Id].MailFolders.SentItems.Messages.Request().Filter(string.Format("SentDateTime ge '{0}'", filter.ToString("yyyy-MM-ddTHH:mm:ssZ"))).GetAsync();
  </code></pre>
  
  <p>I get a Microsoft.Graph.ServiceException:</p>
  
  <blockquote>
    <p>A binary operator with incompatible types was detected. Found operand types 'Edm.DateTimeOffset' and 'Edm.String' for operator kind 'GreaterThanOrEqual'.</p>
  </blockquote>
  
  <p>How can I fix this ?</p>