title: Fetching emails for a specific date in c# using Exchange Web Services
body: <p>I am able to fetch emails from a mailbox based on a subject. I am not sure what the format for fetching emails based on the received date?</p>
  
  <pre><code>           string message = string.Empty;
              Item item = Item.Bind(exService, messageID, PropertySet.FirstClassProperties);
  
              if (item is EmailMessage)
              {
                  EmailMessage em = (EmailMessage)item;
  
                  string strMsg = string.Empty;
                  //strMsg = strMsg + item.Id.ToString();
                  //strMsg = strMsg + item.DateTimeReceived;
                  strMsg = strMsg + "*********************** New Fiscal Email received on " + item.DateTimeReceived  +" ************************************" + Environment.NewLine;
  
                  if (em.Body.Text.Contains("BRANDON"))
                  {
                      strMsg = strMsg + em.Body.Text.ToString();
                  }
                  strMsg = strMsg + "*********************** End of Email Body ************************************" + Environment.NewLine;
                  message = strMsg;
  
              }
  </code></pre>