Skip to content

Note about custom formats and the HTML5 date type #2975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 2, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions reference/forms/types/date.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ Alternatively, you can specify a string to be displayed for the "blank" value::

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

.. note::

If you want your field to be rendered as a HTML5 date field, you have to use
a ``single_text`` widget and the ``yyyy-MM-dd`` format (the `RFC 3339`_ format)
which is the default format if you use the ``single_text`` widget and don't
specify any other format.

.. include:: /reference/forms/types/options/data_timezone.rst.inc

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

.. include:: /reference/forms/types/options/error_mapping.rst.inc

.. _`RFC 3339`: http://tools.ietf.org/html/rfc3339