Skip to content

Commit d00645a

Browse files
[Form] Add support for the calendar option in DateType
1 parent 03601f7 commit d00645a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

reference/forms/types/date.rst

+13
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,19 @@ values for the year, month and day fields::
155155

156156
.. include:: /reference/forms/types/options/view_timezone.rst.inc
157157

158+
``calendar``
159+
~~~~~~~~~~~~
160+
161+
**type**: ``\IntlCalendar`` **default**: ``null``
162+
163+
The calendar to use for formatting and parsing the date. The value should be
164+
an instance of the :phpclass:`IntlCalendar` to use. By default, the Gregorian
165+
calendar with the application default locale is used.
166+
167+
.. versionadded:: 7.2
168+
169+
The ``calendar`` option was introduced in Symfony 7.2.
170+
158171
.. include:: /reference/forms/types/options/date_widget.rst.inc
159172

160173
.. include:: /reference/forms/types/options/years.rst.inc

0 commit comments

Comments
 (0)