title: odbc_exec datetime error
body: <p>I have an error when running a stored procedure that contains dates as input.</p>
  
  <p>My query is:</p>
  
  <pre><code>$query = "asistencia_virtual '2012-01-01', '2012-12-31'";
  </code></pre>
  
  <p>In Management Studio and it works perfect.</p>
  
  <p>I have only problems with queries that are dated, the others work great.</p>
  
  <blockquote>
    <p>Warning: odbc_exec(): SQL error: [Microsoft][SQL Server Native Client 10.0][SQL Server]<br>Error de sintaxis al convertir una cadena de caracteres a datetime., SQL state 22008 in SQLExecDirect </p>
  </blockquote>