Skip to content

Commit f06c6e7

Browse files
authored
Update datetime.rst
Date label and time label are not guessed.
1 parent c42aead commit f06c6e7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

reference/forms/types/datetime.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ for more details.
3838
date_label
3939
~~~~~~~~~~
4040

41-
**type**: ``string`` | ``null`` **default**: The label is "guessed" from the field name
41+
**type**: ``string`` | ``null`` **default**: ``null``
4242

43-
Sets the label that will be used when rendering the date widget. Setting it to
44-
``false`` will suppress the label::
43+
Sets the label that will be used when rendering the date widget::
4544

4645
use Symfony\Component\Form\Extension\Core\Type\DateTimeType;
4746

@@ -136,10 +135,9 @@ input_format
136135
time_label
137136
~~~~~~~~~~
138137

139-
**type**: ``string`` | ``null`` **default**: The label is "guessed" from the field name
138+
**type**: ``string`` | ``null`` **default**: ``null``
140139

141-
Sets the label that will be used when rendering the time widget. Setting it to
142-
``false`` will suppress the label::
140+
Sets the label that will be used when rendering the time widget::
143141

144142
use Symfony\Component\Form\Extension\Core\Type\DateTimeType;
145143

0 commit comments

Comments
 (0)