8000
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 56e73bb commit 3bccc62Copy full SHA for 3bccc62
reference/forms/types/date.rst
@@ -65,6 +65,14 @@ field as **three different choice fields**::
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::
69
+
70
+ $builder->add('publishedAt', DateType::class, [
71
+ 'widget' => 'choice',
72
+ 'input' => 'datetime_immutable'
73
+ ]);
74
75
76
Rendering a single HTML5 Textbox
77
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
78
0 commit comments