title: How to find the average value in a column of dates in SQL Server
body: <p>I have a table of 5000 records with a date column.  </p>
  
  <p>How do I find the average of those dates.  I've tried <code>AVG(datefield)</code>, but it says <code>Operand data type datetime is invalid for avg operator</code></p>