title: Can't set date format for Zend Framework 2 Date form element?
body: <p>I'm just trying to make a Date element in a Form, but the date format is always "mm/dd/yyyy" no matter how I try to change it. I tried setting it up like this:</p>
  
  <pre><code>    $this-&gt;add(array(
          'name' =&gt; 'ct-start_date',
          'options' =&gt; array(
                      'label' =&gt; 'Start Date',
                      'format'=&gt;'Y-m-d'
                      ),
          'attributes' =&gt; array(
              'class' =&gt; 'ct-date',
          ),
          'type'  =&gt; 'Zend\Form\Element\Date',
      ));
  </code></pre>
  
  <p>And displaying like this:</p>
  
  <pre><code>    echo $this-&gt;formRow($form-&gt;get('ct-start_date'));
  </code></pre>
  
  <p>But it still comes out as "mm/dd/yyyy" even though when I do:</p>
  
  <pre><code>    print_r($form-&gt;get('ct-start_date')-&gt;getFormat());
  </code></pre>
  
  <p>that comes out as "Y-m-d"! So I added this:</p>
  
  <pre><code>    $this-&gt;get('ct-start_date')-&gt;setOptions(array('format'=&gt;'Y-m-d'));
  </code></pre>
  
  <p>No change. Then I tried this:</p>
  
  <pre><code>    $date = new Element\Date('ct-start_date');
      $date
          -&gt;setLabel('Start Date')
          -&gt;setAttributes(array(
              'class' =&gt; 'ct-date',
          ))
          -&gt;setOptions(array(
              'format' =&gt; 'Y-m-d'
          ));
      $this-&gt;add($date);
  </code></pre>
  
  <p>Same thing! That's in Chrome. In Firefox it's just an empty text input. Maybe I should just fall back on jQuery.</p>