44**type**: ``integer`` or ``string`` **default **: `IntlDateFormatter::MEDIUM`_
55(or ``yyyy-MM-dd`` if `widget`_ is ``single_text``)
66
7- Option passed to the ``IntlDateFormatter`` class , used to transform user input
8- into the proper format. This is critical when the `widget`_ option is
9- set to ``single_text``, and will define how the user will input the data.
7+ Option passed to the ``IntlDateFormatter`` class , used to transform user
8+ input into the proper format. This is critical when the `widget`_ option
9+ is set to ``single_text`` and will define how the user will input the data.
1010By default , the format is determined based on the current user locale: meaning
11- that *the expected format will be different for different users*. You
12- can override it by passing the format as a string.
11+ that *the expected format will be different for different users*. You can
12+ override it by passing the format as a string.
1313
1414For more information on valid formats, see `Date/Time Format Syntax`_::
1515
@@ -21,9 +21,10 @@ For more information on valid formats, see `Date/Time Format Syntax`_::
2121
2222.. note::
2323
24- If you want your field to be rendered as an HTML5 " date" field, you have to
25- use a ``single_text`` widget with the ``yyyy-MM-dd`` format (the `RFC 3339 `_
26- format) which is the default value if you use the ``single_text`` widget.
24+ If you want your field to be rendered as an HTML5 " date" field, you
25+ have to use a ``single_text`` widget with the ``yyyy-MM-dd`` format
26+ (the `RFC 3339 `_ format) which is the default value if you use the
27+ ``single_text`` widget.
2728
2829.. _`Date/Time Format Syntax`: http:// userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax
2930.. _`IntlDateFormatter::MEDIUM`: http:// www.php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants
0 commit comments