Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 36d5d97

Browse filesBrowse files
committed
minor #9788 [Reference][Form] Describe the syntax of format option using a link of DateTimeType (elementaire)
This PR was merged into the 2.7 branch. Discussion ---------- [Reference][Form] Describe the syntax of format option using a link of DateTimeType I've added a link to describe how to write a valid format. It is the same link from date and birthday types. Commits ------- 8b361ef Update datetime.rst
2 parents fb3c599 + 8b361ef commit 36d5d97
Copy full SHA for 36d5d97

File tree

1 file changed

+3
-1
lines changed
Filter options

1 file changed

+3
-1
lines changed

‎reference/forms/types/datetime.rst

Copy file name to clipboardExpand all lines: reference/forms/types/datetime.rst
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ If the ``widget`` option is set to ``single_text``, this option specifies
107107
the format of the input, i.e. how Symfony will interpret the given input
108108
as a datetime string. It defaults to the `RFC 3339`_ format which is used
109109
by the HTML5 ``datetime`` field. Keeping the default value will cause the
110-
field to be rendered as an ``input`` field with ``type="datetime"``.
110+
field to be rendered as an ``input`` field with ``type="datetime"``. For
111+
more information on valid formats, see `Date/Time Format Syntax`_.
111112

112113
.. include:: /reference/forms/types/options/hours.rst.inc
113114

@@ -216,3 +217,4 @@ Field Variables
216217
+----------+------------+----------------------------------------------------------------------+
217218

218219
.. _`RFC 3339`: https://tools.ietf.org/html/rfc3339
220+
.. _`Date/Time Format Syntax`: http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.