<p dir="auto">Hi,</p>
<p dir="auto">Date form type could provide support for partial dates (eg. allow for "yyyy-MM" format), even if limited to inputs type "array" or "string" on such cases</p>
<p dir="auto">cheers</p>
<p dir="auto">DateField should support formats that don't contain the letters "y", "M" or "d" in order to select partial dates (e.g. months). The default values of the fields, when left away, should be the corresponding parts of the UNIX base timestamp 1970-01-01.</p>
<p dir="auto">Example:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$builder-&gt;add('expires_at', 'date', array(
    'format' =&gt; 'MMyyyy',
));"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>builder</span>-&gt;<span class="pl-en">add</span>(<span class="pl-s">'expires_at'</span>, <span class="pl-s">'date'</span>, <span class="pl-en">array</span>(
    <span class="pl-s">'format'</span> =&gt; <span class="pl-s">'MMyyyy'</span>,
));</pre></div>
<p dir="auto">A date submitted here will always have day "1", e.g. "2013-02-01".</p>
<p dir="auto">Further related work:</p>
<p dir="auto">TimeType currently supports the "with__" options for achieving this functionality (including or excluding single parts of the time). We should think about deprecating the "with__" options and supporting a "format" option instead, if this improves consistency.</p>