title: zf2 Form Validator DateTime dateInvalidDate
body: <p>Trying to use a DateTime Form element in ZF2 and cannot valid the form.</p>
  
  <pre><code>$inputFilter-&gt;add(array(
                  'name'     =&gt; 'event_datetime',
                  'required' =&gt; true,
                  'filters'  =&gt; array(
                          array('name' =&gt; 'StringTrim'),
                  ),
                  'validators' =&gt; array(
                          array(
                                  'name'    =&gt; 'StringLength',
                                  'options' =&gt; array(
                                          'encoding' =&gt; 'UTF-8',
                                          'min'      =&gt; 0,
                                          'max'      =&gt; 20,
                                  ),
                          ),
                  ),
          ));
  </code></pre>
  
  <p>Using this on the .phtml file.</p>
  
  <pre><code>    &lt;?php $formElement = $form-&gt;get('event_datetime');?&gt;
  &lt;dt&gt;&lt;?php echo $this-&gt;formLabel($formElement);?&gt;&lt;/dt&gt;
  &lt;dd&gt;&lt;?php echo $this-&gt;formDateTimeLocal($formElement);?&gt;
  &lt;?php echo $this-&gt;formElementErrors($formElement);?&gt;
  </code></pre>
  
  <p><em>NOTE: using formDateTimeLocal instead of formDateTime as the latter does not show the HTML5 elements.</em>
  Using Chrome the HTML5 DateTimeLocal field appears with a calendar and Time section.</p>
  
  <p>When running $form->isValid() I receive: (var_dump($form->getMessages())) </p>
  
  <pre><code>array (size=1) 'event_datetime' =&gt; array (size=1) 'dateInvalidDate' =&gt; string 'The input does not appear to be a valid date' (length=44)
  </code></pre>
  
  <p>The getRequest->getPost() = public 'event_datetime' => string '2015-08-10T03:00' (length=16)</p>
  
  <p>I've tried to split this field into 2: a Date and a Time field as separate variables. This works correctly for the Date BUT not for the Time element.
  Reading around I've noticed this: <a href="https://stackoverflow.com/questions/23666296/zf2-validating-date-and-time-format-pt-br-always-the-input-does-not-appear-to-be">ZF2 validating date and time format PT_BR always The input does not appear to be a valid date</a> which does not help as I need the time component. (obviously I have looked at more than just 1 link but my rep on SO allows only 1 url in post.)
  I've also read that Chrome and Opera cut off the 'seconds' part of the time field....
  How to I validate either a \Zend\Form\Element\DateTime field or just the \Zend\Form\Element\Time for field...</p>
  
  <p>I've tried to manually glue these together, add the :00 seconds part of the string to Time but to no effect.</p>
  
  <p>If I set the input filter to 'required' => false I still receive the dateInvalidDate validator for for attempts: DateTime and Time...</p>
  
  <p>So, the question is: </p>
  
  <p>How do I validate a DateTime or Time field using Zf2 form elements and inputFilters. Following the Docs and example don't seem to work for me and manually creating the Time string also has the same issue.</p>