Skip to content

Commit 692f4a9

Browse files
committed
added the possibility to define a form date format as a string
1 parent 98dd5ac commit 692f4a9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
* ``format`` [type: integer, default: IntlDateFormatter::MEDIUM]
2-
Option passed to the IntlDateFormatter class, used to transform user input
1+
* ``format`` [type: integer or string, default: ``IntlDateFormatter::MEDIUM``]
2+
Option passed to the ``IntlDateFormatter`` class, used to transform user input
33
into the proper format. This is critical when the ``widget`` option is
4-
set to ``text``, and will define how to transform the input.
4+
set to ``text``, and will define how to transform the input. By default,
5+
the format is determined based on the current user locale; you can override
6+
it by passing the format as a string.

0 commit comments

Comments
 (0)