Skip to content

Commit 30329a8

Browse files
zerkmsweaverryan
authored andcommitted
Fix for invalid date format example
1 parent 916e090 commit 30329a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ By default, the format is determined based on the current user locale; you
1010
can override it by passing the format as a string.
1111

1212
For more information on valid formats, see `Date/Time Format Syntax`_. For
13-
example, to render a single text box that expects the user to end ``YYYY-MM-dd``,
13+
example, to render a single text box that expects the user to end ``yyyy-MM-dd``,
1414
use the following options::
1515

1616
$builder->add('date_created', 'date', array(
1717
'widget' => 'single_text',
18-
'format' => 'YYYY-MM-dd',
18+
'format' => 'yyyy-MM-dd',
1919
));
2020

2121
.. _`Date/Time Format Syntax`: http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax

0 commit comments

Comments
 (0)