title: EntityFramework, Dates and UTC
body: <p>I have an entity with a DateTimeOffset (since .NET doesn't have a Date class) that is supposed to store a date (no time).</p>
  
  <p>The problem is that, when I set the date to, for example, "2017-9-1" in the database it's saved as "2017-08-31 22:00:00+00" (2 hours less)</p>
  
  <p>I think it applies the offset of my time zone to UTC.</p>
  
  <p>I would like to store like to store "2017-9-1" in the database. The first thing I thought is to add 2 hours to every DateTimeOffet, but it feels bogus.</p>
  
  <p>Is there a better way to work with dates than this?</p>