Skip to content

Commit 46e650f

Browse files
committed
Minor tweaks
1 parent 122fb7b commit 46e650f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

reference/forms/types/date.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,14 @@ field as **three different choice fields**::
6262
'widget' => 'choice',
6363
]);
6464

65-
If your underlying date is *not* a ``DateTime`` object (e.g. it's a unix timestamp),
66-
configure the `input`_ option.
67-
68-
When working with a ``DateTimeImmutable`` object, add this as an ``input`` option::
65+
If your underlying date is *not* a ``DateTime`` object (e.g. it's a unix
66+
timestamp or a ``DateTimeImmutable`` object), configure the `input`_ option::
6967

7068
$builder->add('publishedAt', DateType::class, [
7169
'widget' => 'choice',
7270
'input' => 'datetime_immutable'
7371
]);
7472

75-
7673
Rendering a single HTML5 Textbox
7774
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7875

0 commit comments

Comments
 (0)