title: Inserting current date to MySql using Zend Date
body: <p>I have a website based on Zend Framework. There is a form for users to fill in and the entered data is inserted in the database. </p>
  
  <p>The users don't enter the date/time. I would like to populate the data value based on the current date/time . The date <strong>field</strong> is of type <strong>datetime</strong>.  </p>
  
  <p>i'm constantly getting the following error message:</p>
  
  <pre><code>Notice: Array to string conversion in D:\wamp\www\CNFSORG\library\Zend\Db\Statement\Pdo.php on line 228
  </code></pre>
  
  <p>I have tried doing the following:</p>
  
  <pre><code>&lt;?php $date = new Zend_Date(); ?&gt;
  </code></pre>
  
  <p>also tried doing:</p>
  
  <pre><code>&lt;?php $date = new Zend_Db_Expr('NOW()'); ?&gt;
  &lt;?php $date = new Zend_Db_Expr('CURDATE()'); ?&gt;
  </code></pre>
  
  <p>I would be very grateful if someone could point me towards the right direction.</p>
  
  <p>thanks in advance...</p>