We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 122fb7b commit 46e650fCopy full SHA for 46e650f
reference/forms/types/date.rst
@@ -62,17 +62,14 @@ field as **three different choice fields**::
62
'widget' => 'choice',
63
]);
64
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::
+If your underlying date is *not* a ``DateTime`` object (e.g. it's a unix
+timestamp or a ``DateTimeImmutable`` object), configure the `input`_ option::
69
70
$builder->add('publishedAt', DateType::class, [
71
72
'input' => 'datetime_immutable'
73
74
75
76
Rendering a single HTML5 Textbox
77
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
78
0 commit comments