title: CurrentDateTime() in EF
body: <p>I use this code to get Server Date but I really don't understand.CreateDateTime() is not a sql function.so what is it?</p>
  
  <pre><code>DateTime ServerDate = Entities.CreateQuery&lt;DateTime&gt;("CurrentDateTime()").AsEnumerable().First();
  </code></pre>
  
  <p>I think the string that comes in CreateQuery function must be a sql query.Is it wrong?</p>
  
  <p>I have open the SSMS and write CurrentDateTime() and i got an error,I have test this too: SELECT CurrentDateTime(), and i got an error agian,CurrentDateTime() is not a sql function</p>