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 98dd5ac commit 692f4a9Copy full SHA for 692f4a9
reference/forms/types/options/date_format.rst.inc
@@ -1,4 +1,6 @@
1
-* ``format`` [type: integer, default: IntlDateFormatter::MEDIUM]
2
- Option passed to the IntlDateFormatter class, used to transform user input
+* ``format`` [type: integer or string, default: ``IntlDateFormatter::MEDIUM``]
+ Option passed to the ``IntlDateFormatter`` class, used to transform user input
3
into the proper format. This is critical when the ``widget`` option is
4
- set to ``text``, and will define how to transform the input.
+ set to ``text``, and will define how to transform the input. By default,
5
+ the format is determined based on the current user locale; you can override
6
+ it by passing the format as a string.
0 commit comments