title: How to get latest messages from Outlook
body: <p>I'm writing a work management application in C# for my team at work (because our stupid employer didn't give us any appropriate tools). I need to check for new messages in Outlook every once in a while and I need to get messages since the last time I checked them.</p>
  
  <p>I've tried the <code>Items.Restrict()</code> method and used the filter <code>"[ReceivedTime] &gt; ' "+lastUpdate+" ' "</code>, but it doesn't seem to work correctly. I've probably tried every possible format of <code>lastUpdate</code> - converted to universal time, to string, to US date/time format. NOTHING works correctly. It either gives me messages in absolutely different time range or doesn't find any msgs at all.</p>
  
  <p>Any idea what I'm doing wrong? I'm also thinking about using <code>AdvancedSearch()</code> but will it be easy and quick to implement? Thanks in advance for your replies!</p>