title: Entity Framework - update field value to current DB server time
body: <p>I've pulling back an entity object from a database and I need to update the date to the DB server's date/time - usually you could accomplish this by setting it with the SQL <code>getDate()</code> function. </p>
  
  <p>How can I accomplish this in the following scenario:</p>
  
  <pre><code>var client = context.client.Where(c=&gt;c.clientID == 1).FirstOrDefault();
  
  // the value needs to be the value of the server's current date, i.e, getDate()... not DateTime.Now
  client.someDate = &lt;somevalue&gt;;
  context.SaveChanges();
  </code></pre>