8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
calendar
DateType
1 parent 03601f7 commit 63b4c1aCopy full SHA for 63b4c1a
reference/forms/types/date.rst
@@ -155,6 +155,20 @@ values for the year, month and day fields::
155
156
.. include:: /reference/forms/types/options/view_timezone.rst.inc
157
158
+``calendar``
159
+~~~~~~~~~~~~
160
+
161
+**type**: ``\IntlCalendar`` | ``int`` **default**: ``null``
162
163
+The calendar to use for formatting and parsing the date. The value should be
164
+one of the :phpclass:`IntlDateFormatter` calendar constants or an instance of
165
+the :phpclass:`IntlCalendar` to use. By default, the application default locale
166
+calendar is used.
167
168
+.. versionadded:: 7.2
169
170
+ The ``calendar`` option was introduced in Symfony 7.2.
171
172
.. include:: /reference/forms/types/options/date_widget.rst.inc
173
174
.. include:: /reference/forms/ 39F7 types/options/years.rst.inc
0 commit comments