title: PHP date dd-mm-yyyy
body: <p>I would like to fill a date in as dd-mm-yyyy but I would like to save the date as Y-m-d in my database. What I have is this: </p>
  
  <p>Form:</p>
  
  <pre><code>$factuurDatum = new Zend_Form_Element_Text('datum');
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>$data = $addInkoopfactuur-&gt;getValues();    
  $data['datum'] = date("Y-m-d", strtotime($data['datum']));
  </code></pre>
  
  <p>But it doesn't work. I still get an error: '08-01-2014' and does not fit the date format 'yyyy-MM-dd'. How can I resolve this problem?</p>