title: validating date in zendframework2
body: <p>Hiho,
  I would like to validate a date field from an zf2 
  form. I set the 'format' option to get the format I need.
  But at every time I validate it i get an error.
  The validator looks like this:</p>
  
  <pre><code>            $inputFilter-&gt;add($factory-&gt;createInput(array(
              'name' =&gt; 'user_data_birth',
              'required' =&gt; false,
              'validators' =&gt; array(
                  array(
                  'name' =&gt; 'Date',
                  'options' =&gt; array(
                      'format' =&gt; 'd.m.Y',
                      'locale' =&gt; 'de',
                      'messages' =&gt; array(
                          \Zend\Validator\Date::INVALID =&gt; 'Das scheint kein gÃ¼ltiges Datum zu sein.',
                          \Zend\Validator\Date::INVALID_DATE =&gt; 'Das scheint kein gÃ¼ltiges Datum zu sein. (Invalid Date)',
                          \Zend\Validator\Date::FALSEFORMAT =&gt; 'Das Datum ist nicht im richtigen Format.',
                          ),
                      ),
                  ),
                  array(
                      'name' =&gt; 'NotEmpty',
                      'options' =&gt; array(
                      'messages' =&gt; array(
                          \Zend\Validator\NotEmpty::IS_EMPTY =&gt; 'Bitte geben Sie das Datum an'
                          ),
                      ),
                  )
              ),
          )));
  </code></pre>
  
  <p>But I get every time an error that the date is in the wrong format.</p>