Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff33ed2

Browse files
committed
clarify the datetime format option
1 parent 5edc033 commit ff33ed2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

reference/forms/types/datetime.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ format
112112

113113
If the ``widget`` option is set to ``single_text``, this option specifies
114114
the format of the input, i.e. how Symfony will interpret the given input
115-
as a datetime string. It defaults to the `RFC 3339`_ format which is used
116-
by the HTML5 ``datetime`` field. Keeping the default value will cause the
117-
field to be rendered as an ``input`` field with ``type="datetime"``. For
118-
more information on valid formats, see `Date/Time Format Syntax`_.
115+
as a datetime string. It defaults to the `datetime local`_ format which is
116+
used by the HTML5 ``datetime-local`` field. Keeping the default value will
117+
cause the field to be rendered as an ``input`` field with ``type="datetime-local"``.
118+
For more information on valid formats, see `Date/Time Format Syntax`_.
119119

120120
.. include:: /reference/forms/types/options/hours.rst.inc
121121

@@ -221,5 +221,5 @@ Field Variables
221221
| | | contains the input type to use (``datetime``, ``date`` or ``time``). |
222222
+----------+------------+----------------------------------------------------------------------+
223223

224-
.. _`RFC 3339`: https://tools.ietf.org/html/rfc3339
224+
.. _`datetime local`: http://w3c.github.io/html-reference/datatypes.html#form.data.datetime-local
225225
.. _`Date/Time Format Syntax`: http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax

0 commit comments

Comments
 (0)