<p dir="auto">It seems impossible to set up messages for subtype date and time in DateTimeType.</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="            if (null !== $options['date_widget']) {
                $dateOptions['widget'] = $options['date_widget'];
            }

            if (null !== $options['time_widget']) {
                $timeOptions['widget'] = $options['time_widget'];
            }
"><pre class="notranslate">            <span class="pl-k">if</span> (<span class="pl-c1">null</span> !== <span class="pl-s1"><span class="pl-c1">$</span>options</span>[<span class="pl-s">'date_widget'</span>]) {
                <span class="pl-s1"><span class="pl-c1">$</span>dateOptions</span>[<span class="pl-s">'widget'</span>] = <span class="pl-s1"><span class="pl-c1">$</span>options</span>[<span class="pl-s">'date_widget'</span>];
            }

            <span class="pl-k">if</span> (<span class="pl-c1">null</span> !== <span class="pl-s1"><span class="pl-c1">$</span>options</span>[<span class="pl-s">'time_widget'</span>]) {
                <span class="pl-s1"><span class="pl-c1">$</span>timeOptions</span>[<span class="pl-s">'widget'</span>] = <span class="pl-s1"><span class="pl-c1">$</span>options</span>[<span class="pl-s">'time_widget'</span>];
            }</pre></div>
<p dir="auto">Nothing is done to that, so that it's possible to set widget type.</p>
<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>New feature?</td>
<td>yes</td>
</tr>
</tbody>
</table>
<p dir="auto">in situation:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$builder-&gt;add('datetime', 'datetime', array(
    'date_widget' =&gt; 'single_text',
    'time_widget' =&gt; 'single_text',
    'date_format' =&gt; 'dd.MM.yyyy'
));"><pre class="notranslate"><code class="notranslate">$builder-&gt;add('datetime', 'datetime', array(
    'date_widget' =&gt; 'single_text',
    'time_widget' =&gt; 'single_text',
    'date_format' =&gt; 'dd.MM.yyyy'
));
</code></pre></div>
<p dir="auto">why its not possible to configure date and time widget separatly - like in repeated type?<br>
for example when its required date but not time.. or other classes for each.</p>
<p dir="auto">I suggest:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$builder-&gt;add('datetime', 'datetime', array(
    'date_widget' =&gt; [
        'widget' =&gt; 'single_text',
        'format' =&gt; 'dd.MM.yyyy',
        'required' =&gt; true            
    ],
    'time_widget' =&gt; [
        'widget' =&gt; 'single_text',
        'required' =&gt; false           
    ]
));"><pre class="notranslate"><code class="notranslate">$builder-&gt;add('datetime', 'datetime', array(
    'date_widget' =&gt; [
        'widget' =&gt; 'single_text',
        'format' =&gt; 'dd.MM.yyyy',
        'required' =&gt; true            
    ],
    'time_widget' =&gt; [
        'widget' =&gt; 'single_text',
        'required' =&gt; false           
    ]
));
</code></pre></div>