Skip to content

Commit 7a66e01

Browse files
committed
minor #20145 [Form] Add support for the calendar option in DateType (alexandre-daubois)
This PR was merged into the 7.2 branch. Discussion ---------- [Form] Add support for the `calendar` option in `DateType` Fix #20143 Commits ------- d00645a [Form] Add support for the `calendar` option in `DateType`
2 parents 55d50b0 + d00645a commit 7a66e01

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)