Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions reference/forms/types/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ for more details.
date_label
~~~~~~~~~~

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

Sets the label that will be used when rendering the date widget. Setting it to
``false`` will suppress the label::
Sets the label that will be used when rendering the date widget::

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

Expand Down Expand Up @@ -136,10 +135,9 @@ input_format
time_label
~~~~~~~~~~

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

Sets the label that will be used when rendering the time widget. Setting it to
``false`` will suppress the label::
Sets the label that will be used when rendering the time widget::

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

Expand Down