title: How to Save Date in Yii with Oracle
body: <p>How does one save the date in Yii with Oracle?</p>
  
  <pre><code>$trx-&gt;DATE_TRX=date('Y-m-d');
  CDbCommand failed to execute the SQL statement: 
      SQLSTATE[HY000]: General error: 1861
      OCIStmtExecute: ORA-01861: literal does not match format string
          (ext\pdo_oci\oci_statement.c:148).
      The SQL statement executed was: 
          INSERT INTO "TRX" ("IDMEMBER", "DATE_TRX") VALUES (:yp0, :yp1) RETURNING "ID" INTO :RETURN_ID
  </code></pre>