Skip to content

Commit ebe1260

Browse files
committed
add note for the HTML5 date format
1 parent e1bc7c0 commit ebe1260

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

reference/forms/types/date.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ Alternatively, you can specify a string to be displayed for the "blank" value::
114114

115115
.. include:: /reference/forms/types/options/date_format.rst.inc
116116

117+
.. note::
118+
119+
If you want your field to be rendered as a HTML5 date field, you have to use
120+
a ``single_text`` widget and the ``yyyy-MM-dd`` format (the `RFC 3339`_ format)
121+
which is the default format if you use the ``single_text`` widget and don't
122+
specify any other format.
123+
117124
.. include:: /reference/forms/types/options/data_timezone.rst.inc
118125

119126
.. include:: /reference/forms/types/options/user_timezone.rst.inc
@@ -151,3 +158,5 @@ These options inherit from the :doc:`field</reference/forms/types/form>` type:
151158
.. include:: /reference/forms/types/options/virtual.rst.inc
152159

153160
.. include:: /reference/forms/types/options/error_mapping.rst.inc
161+
162+
.. _`RFC 3339`: http://tools.ietf.org/html/rfc3339

0 commit comments

Comments
 (0)