title: convert string to date in sql server
body: <p>How do I convert <code>YYYY-MM-DD</code> (<code>2012-08-17</code>) to a date in SQL Server?</p>
  
  <p>I don't see this format listed on the help page: <a href="http://msdn.microsoft.com/en-us/library/ms187928.aspx">http://msdn.microsoft.com/en-us/library/ms187928.aspx</a></p>